Class: SMQueue::Adapter

Inherits:
Doodle
  • Object
show all
Defined in:
lib/smqueue.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Doodle

#to_hash

Class Method Details

.create(configuration) ⇒ Object



157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/smqueue.rb', line 157

def self.create(configuration)
  # FIXME: dup config, otherwise can use it only once - prob. better way to do this
  configuration = configuration.dup
  adapter = configuration.delete(:adapter)
  #p [:adapter, adapter]
  ac = AdapterConfiguration.new(:adapter_class => adapter)
  #p [:ac, ac]
  klass = ac.adapter_class
  #p [:class, klass]
  #puts [:configuration, configuration].pretty_inspect
#      klass.new(:configuration => configuration)
  klass.new(:configuration => configuration)
end

Instance Method Details

#close(*args, &block) ⇒ Object



150
151
# File 'lib/smqueue.rb', line 150

def close(*args, &block)
end

#get(*args, &block) ⇒ Object

these are the core methods



153
154
# File 'lib/smqueue.rb', line 153

def get(*args, &block)
end

#open(*args, &block) ⇒ Object

these are not called anywhere…



148
149
# File 'lib/smqueue.rb', line 148

def open(*args, &block)
end

#put(*args, &block) ⇒ Object



155
156
# File 'lib/smqueue.rb', line 155

def put(*args, &block)
end