Class: HealthGraph::WeightFeed
- Inherits:
-
Object
- Object
- HealthGraph::WeightFeed
- Includes:
- Model
- Defined in:
- lib/health_graph/models/weight_feed.rb
Defined Under Namespace
Classes: Item
Instance Attribute Summary
Attributes included from Model
Attributes included from API
Instance Method Summary collapse
-
#initialize(access_token, path) ⇒ WeightFeed
constructor
A new instance of WeightFeed.
Methods included from Model
included, #populate_from_hash!
Methods included from API
Constructor Details
#initialize(access_token, path) ⇒ WeightFeed
Returns a new instance of WeightFeed.
17 18 19 20 21 22 |
# File 'lib/health_graph/models/weight_feed.rb', line 17 def initialize(access_token, path) self.access_token = access_token response = get path, HealthGraph.accept_headers[:weight_feed] self.body = response.body populate_from_hash! self.body end |