Class: UserExample

Inherits:
Object
  • Object
show all
Includes:
Gexp::User, Mongoid::Document
Defined in:
lib/examples/user_example.rb

Instance Method Summary collapse

Instance Method Details

#after_change!(param) ⇒ Object



15
16
# File 'lib/examples/user_example.rb', line 15

def after_change!(param)
end

#max_energyObject



11
12
13
# File 'lib/examples/user_example.rb', line 11

def max_energy
  [ 10, 40, 50, 60, 80, 90, 100][self.exp_level || 0]
end