Sha256: 00522bb6bccf21c8aa453fb33020f2df3f05d1b4d2af18b03d166466072a271b

Contents?: true

Size: 467 Bytes

Versions: 6

Compression:

Stored size: 467 Bytes

Contents

require_relative "./errors.rb"

module PlaylyfeClient
  #Game is 1:1 to connection, so only one instance per connection
  class Game
    
    attr_reader :title, :connection

    
    def to_hash
      @game_hash || {}
    end 

    def players
      []
    end
    
    def actions
      []
    end

    def leaderboards
      []
    end

    def events
      []
    end  

    private

      def initialize(conn)
        @connection=conn
      end  
  end
end    

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
playlyfe_client-1.1.6 lib/playlyfe_client/game.rb
playlyfe_client-1.1.5 lib/playlyfe_client/game.rb
playlyfe_client-1.1.3 lib/playlyfe_client/game.rb
playlyfe_client-1.1.2 lib/playlyfe_client/game.rb
playlyfe_client-1.1.1 lib/playlyfe_client/game.rb
playlyfe_client-1.1.0 lib/playlyfe_client/game.rb