Class: XboxVideo::Video
- Inherits:
-
Object
- Object
- XboxVideo::Video
- Defined in:
- lib/xbox_video/video.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#clip_id ⇒ Object
Returns the value of attribute clip_id.
-
#clips ⇒ Object
Returns the value of attribute clips.
-
#comments_count ⇒ Object
Returns the value of attribute comments_count.
-
#device ⇒ Object
Returns the value of attribute device.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#game ⇒ Object
Returns the value of attribute game.
-
#likes_count ⇒ Object
Returns the value of attribute likes_count.
-
#modified_date ⇒ Object
Returns the value of attribute modified_date.
-
#publish_date ⇒ Object
Returns the value of attribute publish_date.
-
#published ⇒ Object
Returns the value of attribute published.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#rating_count ⇒ Object
Returns the value of attribute rating_count.
-
#record_date ⇒ Object
Returns the value of attribute record_date.
-
#shares_count ⇒ Object
Returns the value of attribute shares_count.
-
#thumbnails ⇒ Object
Returns the value of attribute thumbnails.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#views ⇒ Object
Returns the value of attribute views.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Video
constructor
A new instance of Video.
Constructor Details
#initialize(options = {}) ⇒ Video
Returns a new instance of Video.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/xbox_video/video.rb', line 10 def initialize(={}) @clip_id = ['gameClipId'] @published = (['state'] == 'Published') @publish_date = ['datePublished'] @record_date = ['dateRecorded'] @modified_date = ['lastModified'] @caption = ['userCaption'] @type = ['userCaption'] @duration = ['durationInSeconds'] @rating = ['rating'] @rating_count = ['ratingCount'] @views = ['views'] @title = ['clipName'] @game = ['titleName'] @device = ['deviceType'] @likes_count = ['likeCount'] @shares_count = ['shareCount'] @comments_count = ['commentCount'] @thumbnails = generate_thumbnails ['thumbnails'] @clips = generate_clips ['gameClipUris'] end |
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def caption @caption end |
#clip_id ⇒ Object
Returns the value of attribute clip_id.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def clip_id @clip_id end |
#clips ⇒ Object
Returns the value of attribute clips.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def clips @clips end |
#comments_count ⇒ Object
Returns the value of attribute comments_count.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def comments_count @comments_count end |
#device ⇒ Object
Returns the value of attribute device.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def device @device end |
#duration ⇒ Object
Returns the value of attribute duration.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def duration @duration end |
#game ⇒ Object
Returns the value of attribute game.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def game @game end |
#likes_count ⇒ Object
Returns the value of attribute likes_count.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def likes_count @likes_count end |
#modified_date ⇒ Object
Returns the value of attribute modified_date.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def modified_date @modified_date end |
#publish_date ⇒ Object
Returns the value of attribute publish_date.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def publish_date @publish_date end |
#published ⇒ Object
Returns the value of attribute published.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def published @published end |
#rating ⇒ Object
Returns the value of attribute rating.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def @rating end |
#rating_count ⇒ Object
Returns the value of attribute rating_count.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def @rating_count end |
#record_date ⇒ Object
Returns the value of attribute record_date.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def record_date @record_date end |
#shares_count ⇒ Object
Returns the value of attribute shares_count.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def shares_count @shares_count end |
#thumbnails ⇒ Object
Returns the value of attribute thumbnails.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def thumbnails @thumbnails end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def type @type end |
#views ⇒ Object
Returns the value of attribute views.
6 7 8 |
# File 'lib/xbox_video/video.rb', line 6 def views @views end |