Class: PostProxy::ProfileStatsResponse
- Inherits:
-
Object
- Object
- PostProxy::ProfileStatsResponse
- Defined in:
- lib/postproxy/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data:) ⇒ ProfileStatsResponse
constructor
A new instance of ProfileStatsResponse.
Constructor Details
#initialize(data:) ⇒ ProfileStatsResponse
Returns a new instance of ProfileStatsResponse.
559 560 561 |
# File 'lib/postproxy/types.rb', line 559 def initialize(data:) @data = data.is_a?(ProfileStats) ? data : ProfileStats.new(**data.transform_keys(&:to_sym)) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
557 558 559 |
# File 'lib/postproxy/types.rb', line 557 def data @data end |