Method: Stew::Community::ProfileGame#initialize
- Defined in:
- lib/stew/community/profile_game.rb
#initialize(hash) ⇒ ProfileGame
Returns a new instance of ProfileGame.
18 19 20 21 22 23 24 25 |
# File 'lib/stew/community/profile_game.rb', line 18 def initialize(hash) @app_id = hash['appID'].to_i @name = hash['name'] @logo = hash['logo'] @store_link = hash['storeLink'] @hours_last_2_weeks = hash['hoursLast2Weeks'].to_f @hours_on_record = hash['hoursOnRecord'].to_f end |