Class: Wowza::REST::Client
- Inherits:
-
Object
- Object
- Wowza::REST::Client
- Defined in:
- lib/wowza/rest/client.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#server_name ⇒ Object
readonly
Returns the value of attribute server_name.
Instance Method Summary collapse
- #applications ⇒ Object
-
#initialize(connection) ⇒ Client
constructor
A new instance of Client.
- #publishers ⇒ Object
- #server_path ⇒ Object
- #status ⇒ Object
- #status_path ⇒ Object
Constructor Details
#initialize(connection) ⇒ Client
Returns a new instance of Client.
7 8 9 |
# File 'lib/wowza/rest/client.rb', line 7 def initialize(connection) @connection = connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
5 6 7 |
# File 'lib/wowza/rest/client.rb', line 5 def connection @connection end |
#server_name ⇒ Object (readonly)
Returns the value of attribute server_name.
5 6 7 |
# File 'lib/wowza/rest/client.rb', line 5 def server_name @server_name end |
Instance Method Details
#applications ⇒ Object
15 16 17 |
# File 'lib/wowza/rest/client.rb', line 15 def applications Applications.new(connection) end |
#publishers ⇒ Object
11 12 13 |
# File 'lib/wowza/rest/client.rb', line 11 def publishers Publishers.new(connection) end |
#server_path ⇒ Object
31 32 33 |
# File 'lib/wowza/rest/client.rb', line 31 def server_path "/v2/servers/#{server_name}" end |
#status ⇒ Object
19 20 21 |
# File 'lib/wowza/rest/client.rb', line 19 def status StatusParser.new.parse(get_json(status_path)) end |
#status_path ⇒ Object
23 24 25 |
# File 'lib/wowza/rest/client.rb', line 23 def status_path "#{server_path}/status" end |