Exception: Rubord::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rubord/structs/rest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status = nil, response_body = nil) ⇒ APIError

Returns a new instance of APIError.



362
363
364
365
366
# File 'lib/rubord/structs/rest.rb', line 362

def initialize(message, status = nil, response_body = nil)
  super(message)
  @status = status
  @response_body = response_body
end

Instance Attribute Details

#response_bodyObject (readonly)

Returns the value of attribute response_body.



360
361
362
# File 'lib/rubord/structs/rest.rb', line 360

def response_body
  @response_body
end

#statusObject (readonly)

Returns the value of attribute status.



360
361
362
# File 'lib/rubord/structs/rest.rb', line 360

def status
  @status
end