class SRL::Player
A registered user of SpeedRunsLive.com
Attributes
api[R]
Streaming platform used by this player. For example: Twitch.
channel[R]
– Stream information for the player ++ This player's profile name on a streaming service.
name[R]
This player's registered name on SpeedRunsLive.
- NOTE
-
This might not be the same name that he has registered on IRC.
oid[R]
player_id[R]
twitter[R]
This player's Twitter name.
youtube[R]
This player's YouTube channel.
Public Instance Methods
api=(val)
click to toggle source
# File lib/srl/player.rb, line 21 def api=(val) @api = val.intern end
exists?()
click to toggle source
Does this player exist?
# File lib/srl/player.rb, line 40 def exists? player_id != 0 end
stream()
click to toggle source
URL to this player's stream.
- FIXME
-
Add support for non-twitch streams.
# File lib/srl/player.rb, line 34 def stream api == :twitch ? "https://twitch.tv/#{channel}/" : 'Unsupported' end