Exception: Vertebrae::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vertebrae/response_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, response) ⇒ ResponseError

Returns a new instance of ResponseError.



7
8
9
10
# File 'lib/vertebrae/response_error.rb', line 7

def initialize(status_code, response)
  @status_code = status_code
  super(error_message(response))
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



5
6
7
# File 'lib/vertebrae/response_error.rb', line 5

def status_code
  @status_code
end