Class: JawboneUp::Client::Response::Meta
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- JawboneUp::Client::Response::Meta
- Defined in:
- lib/jawbone_up/client/response/meta.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Meta
constructor
A new instance of Meta.
Constructor Details
#initialize(response) ⇒ Meta
5 6 7 8 9 |
# File 'lib/jawbone_up/client/response/meta.rb', line 5 def initialize(response) = JSON.parse(response)['meta'] ['time'] = Time.at(['time'].to_i) super() end |