Class: OpenVidu::Requestor
- Inherits:
-
Object
- Object
- OpenVidu::Requestor
- Defined in:
- lib/open_vidu/requestor.rb
Overview
Requestor
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(server, method, endpoint, params = {}) ⇒ Requestor
constructor
A new instance of Requestor.
Constructor Details
#initialize(server, method, endpoint, params = {}) ⇒ Requestor
Returns a new instance of Requestor.
9 10 11 12 13 14 |
# File 'lib/open_vidu/requestor.rb', line 9 def initialize(server, method, endpoint, params = {}) @server = server @method = method @endpoint = endpoint @params = params end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
7 8 9 |
# File 'lib/open_vidu/requestor.rb', line 7 def endpoint @endpoint end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/open_vidu/requestor.rb', line 7 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/open_vidu/requestor.rb', line 7 def params @params end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
7 8 9 |
# File 'lib/open_vidu/requestor.rb', line 7 def server @server end |
Instance Method Details
#execute ⇒ Object
16 17 18 |
# File 'lib/open_vidu/requestor.rb', line 16 def execute HTTParty.send(method, url, ) end |