Class: YouTubeG::Model::Content

Inherits:
Record
  • Object
show all
Defined in:
lib/youtube_g/model/content.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from YouTubeG::Record

Instance Attribute Details

#defaultObject (readonly) Also known as: is_default?

Boolean

Description of the video.



5
6
7
# File 'lib/youtube_g/model/content.rb', line 5

def default
  @default
end

#durationObject (readonly)

Fixnum

Length of the video in seconds.



7
8
9
# File 'lib/youtube_g/model/content.rb', line 7

def duration
  @duration
end

#formatObject (readonly)

YouTubeG::Model::Video::Format

Specifies the video format of the video object



9
10
11
# File 'lib/youtube_g/model/content.rb', line 9

def format
  @format
end

#mime_typeObject (readonly)

String

Specifies the MIME type of the media object.



11
12
13
# File 'lib/youtube_g/model/content.rb', line 11

def mime_type
  @mime_type
end

#urlObject (readonly)

String

Specifies the URL for the media object.



13
14
15
# File 'lib/youtube_g/model/content.rb', line 13

def url
  @url
end