GData JavaScript Client 1.10

Class google.gdata.Rating

Object
   |
   +--google.gdata.Rating

class google.gdata.Rating


Describes a rating.
Defined in gdata.js


Field Summary
 {string|undefined} average
          Average rating.
 {string|undefined} max
          Rating scale's maximum value.
 {string|undefined} min
          Rating scale's minimum value.
 {string|undefined} numRaters
          Number of ratings taken into account when computing the average value.
 {string|undefined} rel
          Programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating.
 {string|undefined} value
          Rating value.
<static>  <final> {string} REL_OVERALL
          Overall rating, higher values mean better ratings.
<static>  <final> {string} REL_PRICE
          Price rating, higher values mean better ratings.
<static>  <final> {string} REL_QUALITY
          Quality rating, higher values mean better ratings.
 
Constructor Summary
google.gdata.Rating(<Object> opt_params)
            Constructs a rating using an object parameter whose property names match the setter method to use for each property.
 
Method Summary
 number|undefined getAverage()
           Returns the average rating.
 number|undefined getMax()
           Returns the rating scale's maximum value.
 number|undefined getMin()
           Returns the rating scale's minimum value.
 number|undefined getNumRaters()
           Returns the number of ratings taken into account when computing the average value.
 string|undefined getRel()
           Returns the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating.
 number|undefined getValue()
           Returns the rating value.
 void setAverage(<number|undefined> average)
           Sets the average rating.
 void setMax(<number|undefined> max)
           Sets the rating scale's maximum value.
 void setMin(<number|undefined> min)
           Sets the rating scale's minimum value.
 void setNumRaters(<number|undefined> numRaters)
           Sets the number of ratings taken into account when computing the average value.
 void setRel(<string|undefined> rel)
           Sets the programmatic value that describes the aspect that's being rated, if not specified, the rating is an overall rating.
 void setValue(<number|undefined> value)
           Sets the rating value.

Field Detail

average

{string|undefined} average

max

{string|undefined} max

min

{string|undefined} min

numRaters

{string|undefined} numRaters

rel

{string|undefined} rel

value

{string|undefined} value

REL_OVERALL

<static> <final> {string} REL_OVERALL

REL_PRICE

<static> <final> {string} REL_PRICE

REL_QUALITY

<static> <final> {string} REL_QUALITY

Constructor Detail

google.gdata.Rating

google.gdata.Rating(<Object> opt_params)

Method Detail

getAverage

number|undefined getAverage()

getMax

number|undefined getMax()

getMin

number|undefined getMin()

getNumRaters

number|undefined getNumRaters()

getRel

string|undefined getRel()

getValue

number|undefined getValue()

setAverage

void setAverage(<number|undefined> average)

setMax

void setMax(<number|undefined> max)

setMin

void setMin(<number|undefined> min)

setNumRaters

void setNumRaters(<number|undefined> numRaters)

setRel

void setRel(<string|undefined> rel)

setValue

void setValue(<number|undefined> value)

GData JavaScript Client 1.10

Documentation generated by JSDoc on Thu May 21 13:07:57 2009