Class: Player

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/rubypitaya/app-template/app/models/player.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



9
10
11
12
13
14
15
# File 'lib/rubypitaya/app-template/app/models/player.rb', line 9

def to_hash
  {
    name: name,
    gold: gold,
    userId: user_id,
  }
end