Exception: Foobara::DomainMapperLookups::AmbiguousDomainMapperError
- Inherits:
-
StandardError
- Object
- StandardError
- Foobara::DomainMapperLookups::AmbiguousDomainMapperError
- Defined in:
- foobara-0.0.110/projects/domain_mapper/src/domain_mapper_lookups.rb
Instance Attribute Summary collapse
-
#candidates ⇒ Object
Returns the value of attribute candidates.
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from, to, candidates) ⇒ AmbiguousDomainMapperError
constructor
A new instance of AmbiguousDomainMapperError.
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
#candidates ⇒ Object
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 |
#from ⇒ Object
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 |
#to ⇒ Object
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 |