Class: Iglu::Registries::LookupFailure
- Inherits:
-
Object
- Object
- Iglu::Registries::LookupFailure
- Defined in:
- lib/iglu-client/registries.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Instance Method Summary collapse
-
#initialize(registry, reason) ⇒ LookupFailure
constructor
A new instance of LookupFailure.
- #to_s ⇒ Object
Constructor Details
#initialize(registry, reason) ⇒ LookupFailure
Returns a new instance of LookupFailure.
107 108 109 110 |
# File 'lib/iglu-client/registries.rb', line 107 def initialize(registry, reason) @reason = reason @registry = registry end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
105 106 107 |
# File 'lib/iglu-client/registries.rb', line 105 def reason @reason end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
105 106 107 |
# File 'lib/iglu-client/registries.rb', line 105 def registry @registry end |
Instance Method Details
#to_s ⇒ Object
112 113 114 |
# File 'lib/iglu-client/registries.rb', line 112 def to_s "Lookup failure at #{@registry} because #{@reason}" end |