Class: YouTubeG::Model::Rating

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from YouTubeG::Record

Instance Attribute Details

#averageObject (readonly)

Float

Average rating given to the video



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

def average
  @average
end

#maxObject (readonly)

Fixnum

Maximum rating that can be assigned to the video



8
9
10
# File 'lib/youtube_g/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_g/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_g/model/rating.rb', line 14

def rater_count
  @rater_count
end