Exception: Foobara::DomainMapperLookups::AmbiguousDomainMapperError

Inherits:
StandardError
  • Object
show all
Defined in:
foobara-0.0.110/projects/domain_mapper/src/domain_mapper_lookups.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to, candidates) ⇒ AmbiguousDomainMapperError

Returns a new instance of AmbiguousDomainMapperError.



31
32
33
34
35
36
37
# File 'foobara-0.0.110/projects/domain_mapper/src/domain_mapper_lookups.rb', line 31

def initialize(from, to, candidates)
  self.to = to
  self.from = from
  self.candidates = [*candidates].flatten

  super("#{candidates.size} ambiguous candidates found.")
end

Instance Attribute Details

#candidatesObject

Returns the value of attribute candidates.



29
30
31
# File 'foobara-0.0.110/projects/domain_mapper/src/domain_mapper_lookups.rb', line 29

def candidates
  @candidates
end

#fromObject

Returns the value of attribute from.



29
30
31
# File 'foobara-0.0.110/projects/domain_mapper/src/domain_mapper_lookups.rb', line 29

def from
  @from
end

#toObject

Returns the value of attribute to.



29
30
31
# File 'foobara-0.0.110/projects/domain_mapper/src/domain_mapper_lookups.rb', line 29

def to
  @to
end