Class: GoogleVideo::TopVideo

Inherits:
Record
  • Object
show all
Defined in:
lib/google-video.rb

Overview

Describes an entry on the “top videos” page. Parameters are specified via a hash passed to the object on construction mapping attribute names to their respective values.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from GoogleVideo::Record

Instance Attribute Details

#movementObject (readonly)

the direction the entry moved from the previous day to today: 0 for no change, 1 for moving up, -1 for moving down.



231
232
233
# File 'lib/google-video.rb', line 231

def movement
  @movement
end

#rank_todayObject (readonly)

the entry’s rank today.



234
235
236
# File 'lib/google-video.rb', line 234

def rank_today
  @rank_today
end

#rank_yesterdayObject (readonly)

the entry’s rank yesterday.



237
238
239
# File 'lib/google-video.rb', line 237

def rank_yesterday
  @rank_yesterday
end

#videoObject (readonly)

the entry’s video details as a Video object.



240
241
242
# File 'lib/google-video.rb', line 240

def video
  @video
end