Class: Yt::Models::StatisticsSet
- Defined in:
- lib/yt/models/statistics_set.rb
Overview
Encapsulates statistics about the resource, such as the number of times the resource has been viewed or liked.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ StatisticsSet
constructor
A new instance of StatisticsSet.
Methods included from Associations::HasOne
Methods included from Associations::HasMany
Methods included from Associations::HasAuthentication
Constructor Details
#initialize(options = {}) ⇒ StatisticsSet
Returns a new instance of StatisticsSet.
11 12 13 |
# File 'lib/yt/models/statistics_set.rb', line 11 def initialize( = {}) @data = [:data] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/yt/models/statistics_set.rb', line 9 def data @data end |