Class: HealthGraph::FitnessActivitiesFeed
- Inherits:
-
Object
- Object
- HealthGraph::FitnessActivitiesFeed
- Includes:
- Model
- Defined in:
- lib/health_graph/models/fitness_activities_feed.rb
Defined Under Namespace
Classes: Item
Instance Attribute Summary
Attributes included from Model
Attributes included from API
Instance Method Summary collapse
-
#initialize(access_token, path, params = {}) ⇒ FitnessActivitiesFeed
constructor
A new instance of FitnessActivitiesFeed.
Methods included from Model
included, #populate_from_hash!
Methods included from API
Constructor Details
#initialize(access_token, path, params = {}) ⇒ FitnessActivitiesFeed
Returns a new instance of FitnessActivitiesFeed.
17 18 19 20 21 22 |
# File 'lib/health_graph/models/fitness_activities_feed.rb', line 17 def initialize(access_token, path, params = {}) self.access_token = access_token response = get path, HealthGraph.accept_headers[:fitness_activity_feed], params self.body = response.body populate_from_hash! self.body end |