Class: Ym4r::YahooMaps::BuildingBlock::LocalSearch::Rating

Inherits:
Struct
  • Object
show all
Defined in:
lib/ym4r/yahoo_maps/building_block/local_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#average_ratingObject

Returns the value of attribute average_rating

Returns:

  • (Object)

    the current value of average_rating



140
141
142
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 140

def average_rating
  @average_rating
end

#last_review_dateObject

Returns the value of attribute last_review_date

Returns:

  • (Object)

    the current value of last_review_date



140
141
142
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 140

def last_review_date
  @last_review_date
end

#last_review_introObject

Returns the value of attribute last_review_intro

Returns:

  • (Object)

    the current value of last_review_intro



140
141
142
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 140

def last_review_intro
  @last_review_intro
end

#total_ratingsObject

Returns the value of attribute total_ratings

Returns:

  • (Object)

    the current value of total_ratings



140
141
142
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 140

def total_ratings
  @total_ratings
end

#total_reviewsObject

Returns the value of attribute total_reviews

Returns:

  • (Object)

    the current value of total_reviews



140
141
142
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 140

def total_reviews
  @total_reviews
end

Instance Method Details

#is_rated?Boolean

Returns:

  • (Boolean)


141
142
143
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 141

def is_rated?
  total_ratings != 0
end