Class: YetisNode::BaseTransport

Inherits:
Object
  • Object
show all
Defined in:
lib/yetis_node/base_transport.rb

Direct Known Subclasses

JsonRpcTransport, XmlRpcTransport

Constant Summary collapse

DEFAULT_TIMEOUT =
5

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, options = {}) ⇒ BaseTransport

Returns a new instance of BaseTransport.



6
7
8
9
# File 'lib/yetis_node/base_transport.rb', line 6

def initialize(uri, options = {})
  @uri = uri
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/yetis_node/base_transport.rb', line 3

def options
  @options
end

#uriObject (readonly)

Returns the value of attribute uri.



3
4
5
# File 'lib/yetis_node/base_transport.rb', line 3

def uri
  @uri
end