Class: PlaylyfeClient::Game
- Inherits:
-
Object
- Object
- PlaylyfeClient::Game
- Defined in:
- lib/playlyfe_client/game.rb
Overview
Game is 1:1 to connection, so only one instance per connection
Direct Known Subclasses
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
8 9 10 |
# File 'lib/playlyfe_client/game.rb', line 8 def connection @connection end |
#title ⇒ Object (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
#actions ⇒ Object
19 20 21 |
# File 'lib/playlyfe_client/game.rb', line 19 def actions [] end |
#events ⇒ Object
27 28 29 |
# File 'lib/playlyfe_client/game.rb', line 27 def events [] end |
#leaderboards ⇒ Object
23 24 25 |
# File 'lib/playlyfe_client/game.rb', line 23 def leaderboards [] end |
#players ⇒ Object
15 16 17 |
# File 'lib/playlyfe_client/game.rb', line 15 def players [] end |
#to_hash ⇒ Object
11 12 13 |
# File 'lib/playlyfe_client/game.rb', line 11 def to_hash @game_hash || {} end |