Class: JawboneUp::Client::Response::Item
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- JawboneUp::Client::Response::Item
- Defined in:
- lib/jawbone_up/client/response/item.rb
Constant Summary collapse
- TYPES =
{ 'time_created' => DateTime, 'time_completed' => DateTime, 'date' => Date, 'place_lat' => Float, 'place_lon' => Float, 'snapshot_image' => URI }
Instance Method Summary collapse
-
#initialize(hash) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(hash) ⇒ Item
14 15 16 |
# File 'lib/jawbone_up/client/response/item.rb', line 14 def initialize(hash) super(normarize(hash)) end |