Class: HealthGraph::StrengthTrainingActivitiesFeed

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/health_graph/models/strength_training_activities_feed.rb

Defined Under Namespace

Classes: Item

Instance Attribute Summary

Attributes included from Model

#body

Attributes included from API

#access_token

Instance Method Summary collapse

Methods included from Model

included, #populate_from_hash!

Methods included from API

#delete, #get, #post, #put

Constructor Details

#initialize(access_token, path, params = {}) ⇒ StrengthTrainingActivitiesFeed

Returns a new instance of StrengthTrainingActivitiesFeed.



17
18
19
20
21
22
# File 'lib/health_graph/models/strength_training_activities_feed.rb', line 17

def initialize(access_token, path, params = {})            
  self.access_token = access_token
  response = get path, HealthGraph.accept_headers[:strength_training_activity_feed], params
  self.body = response.body
  populate_from_hash! self.body
end