Exception: GdsApi::HTTPErrorResponse
- Defined in:
- lib/gds_api/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ HTTPErrorResponse
constructor
A new instance of HTTPErrorResponse.
Constructor Details
#initialize(code) ⇒ HTTPErrorResponse
Returns a new instance of HTTPErrorResponse.
17 18 19 |
# File 'lib/gds_api/exceptions.rb', line 17 def initialize(code) @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
15 16 17 |
# File 'lib/gds_api/exceptions.rb', line 15 def code @code end |