Class: Setka::Workflow::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/setka/workflow/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_response) ⇒ Response

Returns a new instance of Response.



6
7
8
9
10
# File 'lib/setka/workflow/response.rb', line 6

def initialize(raw_response)
  @code = raw_response.status
  @body = raw_response.body
  @headers = raw_response.headers
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/setka/workflow/response.rb', line 4

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/setka/workflow/response.rb', line 4

def code
  @code
end

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'lib/setka/workflow/response.rb', line 4

def headers
  @headers
end