Class: Yt::Models::StatisticsSet

Inherits:
Base
  • Object
show all
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

Instance Method Summary collapse

Methods included from Associations::HasOne

#has_one

Methods included from Associations::HasMany

#has_many

Methods included from Associations::HasAuthentication

#has_authentication

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(options = {})
  @data = options[:data]
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



9
10
11
# File 'lib/yt/models/statistics_set.rb', line 9

def data
  @data
end