Class: Emque::Consuming::Adapter
- Inherits:
-
Object
- Object
- Emque::Consuming::Adapter
- Extended by:
- Forwardable
- Defined in:
- lib/emque/consuming/adapter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ Adapter
constructor
A new instance of Adapter.
Constructor Details
#initialize(name, opts = {}) ⇒ Adapter
Returns a new instance of Adapter.
16 17 18 19 20 |
# File 'lib/emque/consuming/adapter.rb', line 16 def initialize(name, opts = {}) self.name = name fetch_and_load self. = .merge(opts) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/emque/consuming/adapter.rb', line 12 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/emque/consuming/adapter.rb', line 12 def @options end |