Class: NikeV2::Summary

Inherits:
Resource show all
Extended by:
Forwardable
Defined in:
lib/nike_v2/summary.rb

Constant Summary collapse

API_URL =
'/me/sport'

Constants inherited from Resource

Resource::RESP_MSG_INVALID_TOKEN

Instance Method Summary collapse

Methods inherited from Resource

#fetch_data, #get

Constructor Details

#initialize(attributes = {}) ⇒ Summary

Returns a new instance of Summary.



8
9
10
11
12
# File 'lib/nike_v2/summary.rb', line 8

def initialize(attributes = {})
  raise "#{self.class} requires a person." unless attributes.keys.include?(:person)
  set_attributes(attributes)
  super(initialize_data)
end