Class: HealthGraph::NewFitnessActivity
- Inherits:
-
Object
- Object
- HealthGraph::NewFitnessActivity
- Includes:
- Model
- Defined in:
- lib/health_graph/models/new_fitness_activity.rb
Instance Attribute Summary
Attributes included from Model
Attributes included from API
Instance Method Summary collapse
-
#initialize(access_token, params) ⇒ NewFitnessActivity
constructor
A new instance of NewFitnessActivity.
Methods included from Model
included, #populate_from_hash!
Methods included from API
Constructor Details
#initialize(access_token, params) ⇒ NewFitnessActivity
Returns a new instance of NewFitnessActivity.
7 8 9 10 11 12 13 |
# File 'lib/health_graph/models/new_fitness_activity.rb', line 7 def initialize access_token, params self.access_token = access_token response = post "/fitnessActivities", HealthGraph.accept_headers[:new_fitness_activity], params self.location = response.headers[:location] self.status = response.status end |