class Metacritic::Game
Attributes
response[RW]
Public Class Methods
new(response)
click to toggle source
# File lib/metacritic/Game.rb, line 7 def initialize(response) @response = response.body["result"] end
Public Instance Methods
developer()
click to toggle source
# File lib/metacritic/Game.rb, line 39 def developer @response["developer"] end
genre()
click to toggle source
# File lib/metacritic/Game.rb, line 23 def genre @response["genre"] end
name()
click to toggle source
# File lib/metacritic/Game.rb, line 11 def name @response["name"] end
platform()
click to toggle source
# File lib/metacritic/Game.rb, line 31 def platform @response["platform"] end
publisher()
click to toggle source
# File lib/metacritic/Game.rb, line 35 def publisher @response["publisher"] end
rating()
click to toggle source
# File lib/metacritic/Game.rb, line 27 def rating @response["rating"] end
rlsdate()
click to toggle source
# File lib/metacritic/Game.rb, line 19 def rlsdate @response["rlsdate"] end
score()
click to toggle source
# File lib/metacritic/Game.rb, line 15 def score @response["score"].to_i end
url()
click to toggle source
# File lib/metacritic/Game.rb, line 43 def url @response["url"] end