Module: GameFaqs::Random
Instance Method Summary collapse
-
#one_line_review(game, platform = game.platform, options = {:detailed => false}) ⇒ Object
(also: #opinion)
Return the title and the score of a review.
- #question(game, platform = game.platform) ⇒ Object
-
#review(game, platform = game.platform) ⇒ Object
A review for a game.
Instance Method Details
#one_line_review(game, platform = game.platform, options = {:detailed => false}) ⇒ Object Also known as: opinion
Return the title and the score of a review
12 13 14 15 |
# File 'lib/gamefaqs/random.rb', line 12 def one_line_review(game, platform=game.platform, ={:detailed => false}) rev = review(game, platform) rev and "#{[:detailed] ? (rev.game.to_s << ': ') : ''}\"#{rev.title}\" - #{rev.score}" end |