Class: Shoryuken::Polling::QueueConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Shoryuken::Polling::QueueConfiguration
- Defined in:
- lib/shoryuken/polling/base.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
- #to_s ⇒ Object
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/shoryuken/polling/base.rb', line 3 def name @name end |
#options ⇒ Object
Returns the value of attribute options
3 4 5 |
# File 'lib/shoryuken/polling/base.rb', line 3 def @options end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/shoryuken/polling/base.rb', line 8 def ==(other) case other when String if .empty? name == other else false end else super end end |
#hash ⇒ Object
4 5 6 |
# File 'lib/shoryuken/polling/base.rb', line 4 def hash name.hash end |
#to_s ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/shoryuken/polling/base.rb', line 23 def to_s if .empty? name else "#<QueueConfiguration #{name} options=#{.inspect}>" end end |