Class: PostProxy::ProfileStatsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data:) ⇒ ProfileStatsResponse

Returns a new instance of ProfileStatsResponse.



581
582
583
# File 'lib/postproxy/types.rb', line 581

def initialize(data:)
  @data = data.is_a?(ProfileStats) ? data : ProfileStats.new(**data.transform_keys(&:to_sym))
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



579
580
581
# File 'lib/postproxy/types.rb', line 579

def data
  @data
end