Class: YetisNode::Client

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
YetisNode::Cmd::Base, YetisNode::Cmd::Request, YetisNode::Cmd::Set, YetisNode::Cmd::Show
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

Instance Method Summary collapse

Methods included from YetisNode::Cmd::Set

#invoke_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

#invoke

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, options = {})
  @uri = uri
  @options = options
  select_transport!
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



12
13
14
# File 'lib/yetis_node/client.rb', line 12

def options
  @options
end

#transportObject (readonly)

Returns the value of attribute transport.



12
13
14
# File 'lib/yetis_node/client.rb', line 12

def transport
  @transport
end

#uriObject (readonly)

Returns the value of attribute uri.



12
13
14
# File 'lib/yetis_node/client.rb', line 12

def uri
  @uri
end