Exception: ApiRecipes::NoConfigurationGivenForEndpoint
- Inherits:
-
Exception
- Object
- Exception
- ApiRecipes::NoConfigurationGivenForEndpoint
- Defined in:
- lib/api_recipes/exceptions.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
Instance Method Summary collapse
-
#initialize(message = nil, endpoint = nil) ⇒ NoConfigurationGivenForEndpoint
constructor
A new instance of NoConfigurationGivenForEndpoint.
Constructor Details
#initialize(message = nil, endpoint = nil) ⇒ NoConfigurationGivenForEndpoint
Returns a new instance of NoConfigurationGivenForEndpoint.
62 63 64 65 66 67 68 69 70 |
# File 'lib/api_recipes/exceptions.rb', line 62 def initialize( = nil, endpoint = nil) @endpoint = endpoint if # Nothing to do else = "no configuration provided for endpoint '#{@endpoint}'" end super() end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
60 61 62 |
# File 'lib/api_recipes/exceptions.rb', line 60 def endpoint @endpoint end |