Class: Strutta::Points

Inherits:
APIObject show all
Defined in:
lib/strutta-api/points.rb

Overview

Entries belong to a Strutta::Games object Instance methods found in Strutta::APIObject

Instance Attribute Summary

Attributes inherited from APIObject

#game

Instance Method Summary collapse

Methods inherited from APIObject

#create, #method_disabled

Constructor Details

#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

[View source]

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