Class: PostProxy::ProfileStats
Instance Attribute Summary collapse
-
#placement_id ⇒ Object
Returns the value of attribute placement_id.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#profile_id ⇒ Object
Returns the value of attribute profile_id.
-
#records ⇒ Object
Returns the value of attribute records.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ProfileStats
constructor
A new instance of ProfileStats.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ ProfileStats
Returns a new instance of ProfileStats.
433 434 435 436 437 438 439 440 |
# File 'lib/postproxy/types.rb', line 433 def initialize(**attrs) @placement_id = nil @records = [] super @records = (@records || []).map do |r| r.is_a?(StatsRecord) ? r : StatsRecord.new(**r.transform_keys(&:to_sym)) end end |
Instance Attribute Details
#placement_id ⇒ Object
Returns the value of attribute placement_id.
431 432 433 |
# File 'lib/postproxy/types.rb', line 431 def placement_id @placement_id end |
#platform ⇒ Object
Returns the value of attribute platform.
431 432 433 |
# File 'lib/postproxy/types.rb', line 431 def platform @platform end |
#profile_id ⇒ Object
Returns the value of attribute profile_id.
431 432 433 |
# File 'lib/postproxy/types.rb', line 431 def profile_id @profile_id end |
#records ⇒ Object
Returns the value of attribute records.
431 432 433 |
# File 'lib/postproxy/types.rb', line 431 def records @records end |