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