Exception: GdsApi::HTTPErrorResponse

Inherits:
BaseError
  • Object
show all
Defined in:
lib/gds_api/exceptions.rb

Direct Known Subclasses

HTTPNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



12
13
14
# File 'lib/gds_api/exceptions.rb', line 12

def code
  @code
end