Class: Yt::Models::FileDetail

Inherits:
Base
  • Object
show all
Defined in:
lib/yt/models/file_detail.rb

Overview

Encapsulates basic information about the video file itself, including the file name, size, type, and container.

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 = {}) ⇒ FileDetail

Returns a new instance of FileDetail.



11
12
13
# File 'lib/yt/models/file_detail.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/file_detail.rb', line 9

def data
  @data
end