Class: GoogleVideo::TopVideo
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
-
#movement ⇒ Object
readonly
the direction the entry moved from the previous day to today: 0 for no change, 1 for moving up, -1 for moving down.
-
#rank_today ⇒ Object
readonly
the entry’s rank today.
-
#rank_yesterday ⇒ Object
readonly
the entry’s rank yesterday.
-
#video ⇒ Object
readonly
the entry’s video details as a Video object.
Method Summary
Methods inherited from Record
Constructor Details
This class inherits a constructor from GoogleVideo::Record
Instance Attribute Details
#movement ⇒ Object (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_today ⇒ Object (readonly)
the entry’s rank today.
234 235 236 |
# File 'lib/google-video.rb', line 234 def rank_today @rank_today end |
#rank_yesterday ⇒ Object (readonly)
the entry’s rank yesterday.
237 238 239 |
# File 'lib/google-video.rb', line 237 def rank_yesterday @rank_yesterday end |
#video ⇒ Object (readonly)
the entry’s video details as a Video object.
240 241 242 |
# File 'lib/google-video.rb', line 240 def video @video end |