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.
14 15 16 |
# File 'lib/gds_api/exceptions.rb', line 14 def initialize(code) @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
12 13 14 |
# File 'lib/gds_api/exceptions.rb', line 12 def code @code end |