Class: ActiveDiigo::ResponseObject
- Inherits:
-
Object
- Object
- ActiveDiigo::ResponseObject
- Defined in:
- lib/active_diigo/response_object.rb
Instance Attribute Summary collapse
-
#parsed_objects ⇒ Object
readonly
Returns the value of attribute parsed_objects.
-
#parsed_response ⇒ Object
readonly
Returns the value of attribute parsed_response.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
Instance Method Summary collapse
-
#initialize(http_response, receiver_klass) ⇒ ResponseObject
constructor
A new instance of ResponseObject.
Constructor Details
#initialize(http_response, receiver_klass) ⇒ ResponseObject
Returns a new instance of ResponseObject.
28 29 30 31 32 |
# File 'lib/active_diigo/response_object.rb', line 28 def initialize(http_response, receiver_klass) @raw_response, @receiver_klass = http_response, receiver_klass validate_response! @parsed_objects = build_objects end |
Instance Attribute Details
#parsed_objects ⇒ Object (readonly)
Returns the value of attribute parsed_objects.
26 27 28 |
# File 'lib/active_diigo/response_object.rb', line 26 def parsed_objects @parsed_objects end |
#parsed_response ⇒ Object (readonly)
Returns the value of attribute parsed_response.
26 27 28 |
# File 'lib/active_diigo/response_object.rb', line 26 def parsed_response @parsed_response end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
26 27 28 |
# File 'lib/active_diigo/response_object.rb', line 26 def raw_response @raw_response end |