Sha256: 813077c66b1ac7c96c3c2c448938ba0bde3768bd155ac8d4a72da89d3541b2f8

Contents?: true

Size: 665 Bytes

Versions: 3

Compression:

Stored size: 665 Bytes

Contents

module Strutta
  # Entries belong to a Strutta::Games object
  # Instance methods found in Strutta::APIObject
  class Points < APIObject
    # Initializes the Strutta::Entries object
    #
    # @param id [Integer, nil] Entry id
    # @param game [Strutta::Games] Master Strutta::Games object
    # @return [Strutta::Points] instantiated Strutta::Points object
    def initialize(id = nil, game)
      @id = id
      @game = game
      @root_path = 'points'
    end

    # Disbled methods
    alias_method :all, :method_disabled
    alias_method :get, :method_disabled
    alias_method :update, :method_disabled
    alias_method :delete, :method_disabled
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
strutta-api-1.0.3.1 lib/strutta-api/points.rb
strutta-api-1.0.2 lib/strutta-api/points.rb
strutta-api-1.0.1 lib/strutta-api/points.rb