Class: ActiveDiigo::ResponseObject

Inherits:
Object
  • Object
show all
Defined in:
lib/active_diigo/response_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_objectsObject (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_responseObject (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_responseObject (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