Class: PostProxy::StatsRecord

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

Constructor Details

#initialize(**attrs) ⇒ StatsRecord

Returns a new instance of StatsRecord.



266
267
268
269
270
271
# File 'lib/postproxy/types.rb', line 266

def initialize(**attrs)
  @stats = {}
  @recorded_at = nil
  super
  @recorded_at = parse_time(@recorded_at)
end

Instance Attribute Details

#recorded_atObject

Returns the value of attribute recorded_at.



264
265
266
# File 'lib/postproxy/types.rb', line 264

def recorded_at
  @recorded_at
end

#statsObject

Returns the value of attribute stats.



264
265
266
# File 'lib/postproxy/types.rb', line 264

def stats
  @stats
end