Class: Iglu::Registries::LookupFailure

Inherits:
Object
  • Object
show all
Defined in:
lib/iglu-client/registries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



105
106
107
# File 'lib/iglu-client/registries.rb', line 105

def reason
  @reason
end

#registryObject (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_sObject



112
113
114
# File 'lib/iglu-client/registries.rb', line 112

def to_s
  "Lookup failure at #{@registry} because #{@reason}"
end