Class: PlaylyfeClient::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/playlyfe_client/game.rb

Overview

Game is 1:1 to connection, so only one instance per connection

Direct Known Subclasses

V2::Game

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



8
9
10
# File 'lib/playlyfe_client/game.rb', line 8

def connection
  @connection
end

#titleObject (readonly)

Returns the value of attribute title.



8
9
10
# File 'lib/playlyfe_client/game.rb', line 8

def title
  @title
end

Instance Method Details

#actionsObject



19
20
21
# File 'lib/playlyfe_client/game.rb', line 19

def actions
  []
end

#eventsObject



27
28
29
# File 'lib/playlyfe_client/game.rb', line 27

def events
  []
end

#leaderboardsObject



23
24
25
# File 'lib/playlyfe_client/game.rb', line 23

def leaderboards
  []
end

#playersObject



15
16
17
# File 'lib/playlyfe_client/game.rb', line 15

def players
  []
end

#to_hashObject



11
12
13
# File 'lib/playlyfe_client/game.rb', line 11

def to_hash
  @game_hash || {}
end