Exception: Patchboard::Action::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/patchboard/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



120
121
122
123
124
125
# File 'lib/patchboard/action.rb', line 120

def initialize(response)
  @response = response
  @status = @response.status
  @body = @response.body
  @headers = @response.headers
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



118
119
120
# File 'lib/patchboard/action.rb', line 118

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



118
119
120
# File 'lib/patchboard/action.rb', line 118

def headers
  @headers
end

#responseObject (readonly)

Returns the value of attribute response.



118
119
120
# File 'lib/patchboard/action.rb', line 118

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



118
119
120
# File 'lib/patchboard/action.rb', line 118

def status
  @status
end