Class: Yt::Resource
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Resource
constructor
A new instance of Resource.
Methods included from Associations
Methods included from Actions::Update
Constructor Details
#initialize(options = {}) ⇒ Resource
Returns a new instance of Resource.
9 10 11 12 13 14 |
# File 'lib/yt/models/resource.rb', line 9 def initialize( = {}) @id = [:id] @auth = [:auth] @snippet = Snippet.new(data: [:snippet]) if [:snippet] @status = Status.new(data: [:status]) if [:status] end |
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
5 6 7 |
# File 'lib/yt/models/resource.rb', line 5 def auth @auth end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/yt/models/resource.rb', line 5 def id @id end |