Class: Harness::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/harness.rb', line 38

def method_missing(name, *args, &block)
  begin
    "Harness::#{name.to_s.camelize}Adapter".constantize.config
  rescue NameError
    super
  end
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



19
20
21
# File 'lib/harness.rb', line 19

def adapter
  @adapter
end

#namespaceObject

Returns the value of attribute namespace.



20
21
22
# File 'lib/harness.rb', line 20

def namespace
  @namespace
end

#queueObject

Returns the value of attribute queue.



19
20
21
# File 'lib/harness.rb', line 19

def queue
  @queue
end