Class: HealthGraph::FitnessActivityDelete

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

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, 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