cathodic 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cathodic.rb +2 -2
- data/lib/cathodic/version.rb +1 -1
- metadata +1 -1
data/lib/cathodic.rb
CHANGED
|
@@ -5,7 +5,7 @@ require 'openssl'
|
|
|
5
5
|
|
|
6
6
|
module Cathodic
|
|
7
7
|
class TwitchData
|
|
8
|
-
|
|
8
|
+
attr_accessor :account_name, :online, :thumbnail_address, :embed, :viewers, :entry_point, :url, :game, :status, :logo, :banner, :stream_name
|
|
9
9
|
|
|
10
10
|
def initialize(url)
|
|
11
11
|
@entry_point = "https://api.twitch.tv/kraken"
|
|
@@ -47,7 +47,7 @@ module Cathodic
|
|
|
47
47
|
@banner = channel["banner"]
|
|
48
48
|
@stream_name = channel["display_name"]
|
|
49
49
|
|
|
50
|
-
@
|
|
50
|
+
@embed = "<object type=\"application/x-shockwave-flash\" height=\"360\" width=\"640\" id=\"live_embed_player_flash\" data=\"http://en.twitch.tv/widgets/live_embed_player.swf?channel="+@account_name+"\" bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"allowNetworking\" value=\"all\" /><param name=\"movie\" value=\"http://en.twitch.tv/widgets/live_embed_player.swf\" /><param name=\"flashvars\" value=\"hostname=en.twitch.tv&channel="+@account_name+"&auto_play=true&start_volume=25\" /></object>"
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
end
|
data/lib/cathodic/version.rb
CHANGED