Class: NRB::Untappd::API::Object

Inherits:
HTTPService::Response show all
Defined in:
lib/drink-socially/api/object.rb

Instance Attribute Summary collapse

Attributes inherited from HTTPService::Response

#body, #headers, #status

Instance Method Summary collapse

Methods inherited from HTTPService::Response

#errored?, #success?

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

#attributesObject (readonly)

Returns the value of attribute attributes.



6
7
8
# File 'lib/drink-socially/api/object.rb', line 6

def attributes
  @attributes
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



6
7
8
# File 'lib/drink-socially/api/object.rb', line 6

def error_message
  @error_message
end

#paginationObject (readonly)

Returns the value of attribute pagination.



6
7
8
# File 'lib/drink-socially/api/object.rb', line 6

def pagination
  @pagination
end

#resultsObject (readonly)

Returns the value of attribute results.



6
7
8
# File 'lib/drink-socially/api/object.rb', line 6

def results
  @results
end