Class: Emque::Consuming::Adapter

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/emque/consuming/adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.options = default_options.merge(opts)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/emque/consuming/adapter.rb', line 12

def name
  @name
end

#optionsObject

Returns the value of attribute options.



12
13
14
# File 'lib/emque/consuming/adapter.rb', line 12

def options
  @options
end