Class: Apitizer::Connection::Response
- Inherits:
-
Object
- Object
- Apitizer::Connection::Response
- Defined in:
- lib/apitizer/connection/response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(options) ⇒ Response
constructor
A new instance of Response.
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() @code = .fetch(:code) @content = .fetch(:content) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/apitizer/connection/response.rb', line 4 def code @code end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/apitizer/connection/response.rb', line 4 def content @content end |