Class: Stompy
- Inherits:
-
Object
- Object
- Stompy
- 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
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#retry_timeout ⇒ Object
Returns the value of attribute retry_timeout.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Stompy
constructor
A new instance of Stompy.
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
#opts ⇒ Object
Returns the value of attribute opts.
7 8 9 |
# File 'lib/stompy/base.rb', line 7 def opts @opts end |
#retry_timeout ⇒ Object
Returns the value of attribute retry_timeout.
7 8 9 |
# File 'lib/stompy/base.rb', line 7 def retry_timeout @retry_timeout end |