Class: Wowza::REST::Connection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, auth) ⇒ Connection

Returns a new instance of Connection.



7
8
9
10
# File 'lib/wowza/rest/connection.rb', line 7

def initialize(uri, auth)
  @auth = auth
  @uri = uri
end

Instance Attribute Details

#authObject (readonly)

Returns the value of attribute auth.



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

def auth
  @auth
end

#uriObject (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end

Instance Method Details

#delete(path, query = {}, &block) ⇒ Object



24
25
26
# File 'lib/wowza/rest/connection.rb', line 24

def delete(path, query={}, &block)
  request_method(:delete, path, query, &block)
end

#get(path, query = {}, &block) ⇒ Object



12
13
14
# File 'lib/wowza/rest/connection.rb', line 12

def get(path, query={}, &block)
  request_method(:get, path, query, &block)
end

#post(path, query = {}, &block) ⇒ Object



16
17
18
# File 'lib/wowza/rest/connection.rb', line 16

def post(path, query={}, &block)
  request_method(:post, path, query, &block)
end

#put(path, query = {}, &block) ⇒ Object



20
21
22
# File 'lib/wowza/rest/connection.rb', line 20

def put(path, query={}, &block)
  request_method(:put, path, query, &block)
end