Class: Croudia::TrendResults

Inherits:
Base
  • Object
show all
Includes:
Creatable
Defined in:
lib/croudia/trend_results.rb

Instance Method Summary collapse

Methods included from Creatable

#created_at

Methods inherited from Base

#[], attr_object_reader, attr_reader, #attrs, #initialize, #inspect

Constructor Details

This class inherits a constructor from Croudia::Base

Instance Method Details

#as_ofTime

Returns:

  • (Time)


20
21
22
# File 'lib/croudia/trend_results.rb', line 20

def as_of
  @as_of ||= Time.parse(@attrs['as_of'])
end