Sha256: 19f3f0efc34908b5af4146554578a5711e7119f24181cfee834210964fb7b0a6

Contents?: true

Size: 380 Bytes

Versions: 10

Compression:

Stored size: 380 Bytes

Contents

require_relative "./errors.rb"

module PlaylyfeClient
  class Leaderboard
    
    attr_reader :id, :name, :game, :positions
    
    def self.all(game)
      game.leaderboards
    end  
    
    def table
      positions
    end

    def results
      positions
    end

    private

      def initialize(game)
        @game =game
        @positions=[]
      end  
  end
end    

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
playlyfe_client-1.1.6 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.1.5 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.1.3 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.1.2 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.1.1 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.1.0 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.0.6 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.0.5 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.0.4 lib/playlyfe_client/leaderboard.rb
playlyfe_client-1.0.2 lib/playlyfe_client/leaderboard.rb