Class: Wowza::REST::Connection
- Inherits:
-
Object
- Object
- Wowza::REST::Connection
- Defined in:
- lib/wowza/rest/connection.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #delete(path, query = {}, &block) ⇒ Object
- #get(path, query = {}, &block) ⇒ Object
-
#initialize(uri, auth) ⇒ Connection
constructor
A new instance of Connection.
- #post(path, query = {}, &block) ⇒ Object
- #put(path, query = {}, &block) ⇒ Object
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
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
5 6 7 |
# File 'lib/wowza/rest/connection.rb', line 5 def auth @auth end |
#uri ⇒ Object (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 |