Class: Wowza::REST::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/wowza/rest/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectionObject (readonly)

Returns the value of attribute connection.



5
6
7
# File 'lib/wowza/rest/client.rb', line 5

def connection
  @connection
end

#server_nameObject (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

#applicationsObject



15
16
17
# File 'lib/wowza/rest/client.rb', line 15

def applications
  Applications.new(connection)
end

#publishersObject



11
12
13
# File 'lib/wowza/rest/client.rb', line 11

def publishers
  Publishers.new(connection)
end

#server_pathObject



31
32
33
# File 'lib/wowza/rest/client.rb', line 31

def server_path
  "/v2/servers/#{server_name}"
end

#statusObject



19
20
21
# File 'lib/wowza/rest/client.rb', line 19

def status
  StatusParser.new.parse(get_json(status_path))
end

#status_pathObject



23
24
25
# File 'lib/wowza/rest/client.rb', line 23

def status_path
  "#{server_path}/status"
end