Class: Game

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps::Created::Short
Defined in:
app/models/game.rb

Instance Method Summary collapse

Instance Method Details

#as_full_json(options = {}) ⇒ Object


18
19
20
# File 'app/models/game.rb', line 18

def as_full_json(options = {})
  json_generator.generate_full
end

#as_json(options = {}) ⇒ Object


14
15
16
# File 'app/models/game.rb', line 14

def as_json(options = {})
  json_generator.generate
end

#updated_today?Boolean

Returns:

  • (Boolean)

22
23
24
# File 'app/models/game.rb', line 22

def updated_today?
  updated_at == Date.today
end