Class: YetisNode::Client
- Inherits:
-
Object
- Object
- YetisNode::Client
- Extended by:
- Forwardable
- Defined in:
- lib/yetis_node/client.rb
Overview
node = YetisNode::Client.new(‘10.10.10.10:8090’) <YetisNode::Client:0x007f9d8b8b46f8 @uri=“10.10.10.10:8090”, @options={}> node.calls_count
> “10”
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from YetisNode::Cmd::Set
Methods included from YetisNode::Cmd::Request
#call_disconnect, #invoke_request, #resolver_clear, #router_cache_clear
Methods included from YetisNode::Cmd::Show
#calls, #calls_count, #calls_filtered, #configuration, #interfaces, #invoke_show, #media_streams, #registrations, #registrations_count, #resource_state, #stats, #system_status, #version
Methods included from YetisNode::Cmd::Base
Constructor Details
#initialize(uri, options = {}) ⇒ Client
Returns a new instance of Client.
16 17 18 19 20 |
# File 'lib/yetis_node/client.rb', line 16 def initialize(uri, = {}) @uri = uri @options = select_transport! end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/yetis_node/client.rb', line 12 def @options end |
#transport ⇒ Object (readonly)
Returns the value of attribute transport.
12 13 14 |
# File 'lib/yetis_node/client.rb', line 12 def transport @transport end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
12 13 14 |
# File 'lib/yetis_node/client.rb', line 12 def uri @uri end |