Module: Squeezer::Client::Players
- Included in:
- Squeezer::Client
- Defined in:
- lib/squeezer/client/players.rb
Instance Method Summary collapse
- #find_player_by_id(id) ⇒ Object
- #find_player_by_ip(ip) ⇒ Object
- #find_player_by_name(name) ⇒ Object
-
#players ⇒ Object
beware of offline players, they still show up on the list test if those players are connected with Player#connected?.
Instance Method Details
#find_player_by_id(id) ⇒ Object
19 20 21 |
# File 'lib/squeezer/client/players.rb', line 19 def find_player_by_id(id) Models::Player.find_by_id(id) end |
#find_player_by_ip(ip) ⇒ Object
15 16 17 |
# File 'lib/squeezer/client/players.rb', line 15 def find_player_by_ip(ip) Models::Player.find_by_ip(ip) end |
#find_player_by_name(name) ⇒ Object
11 12 13 |
# File 'lib/squeezer/client/players.rb', line 11 def find_player_by_name(name) Models::Player.find_by_name(name) end |
#players ⇒ Object
beware of offline players, they still show up on the list test if those players are connected with Player#connected?
7 8 9 |
# File 'lib/squeezer/client/players.rb', line 7 def players Models::Player.all end |