Class: PostProxy::Insights

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) ⇒ Insights

Returns a new instance of Insights.



51
52
53
54
55
56
# File 'lib/postproxy/types.rb', line 51

def initialize(**attrs)
  @impressions = nil
  @on = nil
  super
  @on = parse_time(@on)
end

Instance Attribute Details

#impressionsObject

Returns the value of attribute impressions.



49
50
51
# File 'lib/postproxy/types.rb', line 49

def impressions
  @impressions
end

#onObject

Returns the value of attribute on.



49
50
51
# File 'lib/postproxy/types.rb', line 49

def on
  @on
end