Method: Strutta::Points#initialize

Defined in:
lib/strutta-api/points.rb

#initialize(id = nil, game) ⇒ Strutta::Points

Initializes the Strutta::Entries object

Parameters:

  • id (Integer, nil) (defaults to: nil)

    Entry id

  • game (Strutta::Games)

    Master Strutta::Games object



10
11
12
13
14
# File 'lib/strutta-api/points.rb', line 10

def initialize(id = nil, game)
  @id = id
  @game = game
  @root_path = 'points'
end