Class: YouTubeIt::Model::Rating

Inherits:
Record
  • Object
show all
Defined in:
lib/youtube_it/model/rating.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from YouTubeIt::Record

Instance Attribute Details

#averageObject (readonly)

Float

Average rating given to the video



5
6
7
# File 'lib/youtube_it/model/rating.rb', line 5

def average
  @average
end

#dislikesObject (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

#likesObject (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

#maxObject (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

#minObject (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_countObject (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