Class: Natero::Response
- Inherits:
-
Object
- Object
- Natero::Response
- Defined in:
- lib/natero/response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#parsed_response ⇒ Object
readonly
Returns the value of attribute parsed_response.
Instance Method Summary collapse
-
#initialize(raw_response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(raw_response) ⇒ Response
Returns a new instance of Response.
4 5 6 7 |
# File 'lib/natero/response.rb', line 4 def initialize(raw_response) @parsed_response = raw_response.parsed_response @code = raw_response.code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
2 3 4 |
# File 'lib/natero/response.rb', line 2 def code @code end |
#parsed_response ⇒ Object (readonly)
Returns the value of attribute parsed_response.
2 3 4 |
# File 'lib/natero/response.rb', line 2 def parsed_response @parsed_response end |