Class: PostProxy::StatsRecord
Instance Attribute Summary collapse
-
#recorded_at ⇒ Object
Returns the value of attribute recorded_at.
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ StatsRecord
constructor
A new instance of StatsRecord.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ StatsRecord
Returns a new instance of StatsRecord.
116 117 118 119 120 121 |
# File 'lib/postproxy/types.rb', line 116 def initialize(**attrs) @stats = {} @recorded_at = nil super @recorded_at = parse_time(@recorded_at) end |
Instance Attribute Details
#recorded_at ⇒ Object
Returns the value of attribute recorded_at.
114 115 116 |
# File 'lib/postproxy/types.rb', line 114 def recorded_at @recorded_at end |
#stats ⇒ Object
Returns the value of attribute stats.
114 115 116 |
# File 'lib/postproxy/types.rb', line 114 def stats @stats end |