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