Class: Stompy

Inherits:
Object
  • Object
show all
Defined in:
lib/stompy/base.rb

Constant Summary collapse

DEFAULT_READ_TIMEOUT =

timeout after which a connection is considered down. the default is 500ms

0.5

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Stompy

Returns a new instance of Stompy.



9
10
11
# File 'lib/stompy/base.rb', line 9

def initialize(opts)
  @opts = opts
end

Instance Attribute Details

#optsObject

Returns the value of attribute opts.



7
8
9
# File 'lib/stompy/base.rb', line 7

def opts
  @opts
end

#retry_timeoutObject

Returns the value of attribute retry_timeout.



7
8
9
# File 'lib/stompy/base.rb', line 7

def retry_timeout
  @retry_timeout
end