Class: NRB::Untappd::API::Object
- Inherits:
-
HTTPService::Response
- Object
- HTTPService::Response
- NRB::Untappd::API::Object
- Defined in:
- lib/drink-socially/api/object.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#pagination ⇒ Object
readonly
Returns the value of attribute pagination.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Attributes inherited from HTTPService::Response
Instance Method Summary collapse
-
#initialize(args) ⇒ Object
constructor
A new instance of Object.
Methods inherited from HTTPService::Response
Constructor Details
#initialize(args) ⇒ Object
Returns a new instance of Object.
8 9 10 11 12 13 |
# File 'lib/drink-socially/api/object.rb', line 8 def initialize(args) super parse_error_response setup_pagination(args) extract_results args[:results_path] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/drink-socially/api/object.rb', line 6 def attributes @attributes end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
6 7 8 |
# File 'lib/drink-socially/api/object.rb', line 6 def @error_message end |
#pagination ⇒ Object (readonly)
Returns the value of attribute pagination.
6 7 8 |
# File 'lib/drink-socially/api/object.rb', line 6 def pagination @pagination end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
6 7 8 |
# File 'lib/drink-socially/api/object.rb', line 6 def results @results end |