Class: Apitizer::Connection::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/apitizer/connection/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Response

Returns a new instance of Response.



6
7
8
9
# File 'lib/apitizer/connection/response.rb', line 6

def initialize(options)
  @code = options.fetch(:code)
  @content = options.fetch(:content)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/apitizer/connection/response.rb', line 4

def code
  @code
end

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/apitizer/connection/response.rb', line 4

def content
  @content
end