Class: YouTubeIt::Model::Rating
- Defined in:
- lib/youtube_it/model/rating.rb
Instance Attribute Summary collapse
-
#average ⇒ Object
readonly
- Float
-
Average rating given to the video.
-
#dislikes ⇒ Object
readonly
- Fixnum
-
Indicates how many people dislikes this video.
-
#likes ⇒ Object
readonly
- Fixnum
-
Indicates how many people likes this video.
-
#max ⇒ Object
readonly
- Fixnum
-
Maximum rating that can be assigned to the video.
-
#min ⇒ Object
readonly
- Fixnum
-
Minimum rating that can be assigned to the video.
-
#rater_count ⇒ Object
readonly
- Fixnum
-
Indicates how many people have rated the video.
Method Summary
Methods inherited from Record
Constructor Details
This class inherits a constructor from YouTubeIt::Record
Instance Attribute Details
#average ⇒ Object (readonly)
- Float
-
Average rating given to the video
5 6 7 |
# File 'lib/youtube_it/model/rating.rb', line 5 def average @average end |
#dislikes ⇒ Object (readonly)
- Fixnum
-
Indicates how many people dislikes this video
20 21 22 |
# File 'lib/youtube_it/model/rating.rb', line 20 def dislikes @dislikes end |
#likes ⇒ Object (readonly)
- Fixnum
-
Indicates how many people likes this video
17 18 19 |
# File 'lib/youtube_it/model/rating.rb', line 17 def likes @likes end |
#max ⇒ Object (readonly)
- Fixnum
-
Maximum rating that can be assigned to the video
8 9 10 |
# File 'lib/youtube_it/model/rating.rb', line 8 def max @max end |
#min ⇒ Object (readonly)
- Fixnum
-
Minimum rating that can be assigned to the video
11 12 13 |
# File 'lib/youtube_it/model/rating.rb', line 11 def min @min end |
#rater_count ⇒ Object (readonly)
- Fixnum
-
Indicates how many people have rated the video
14 15 16 |
# File 'lib/youtube_it/model/rating.rb', line 14 def rater_count @rater_count end |