Class: Harness::Config
- Inherits:
-
Object
- Object
- Harness::Config
- Defined in:
- lib/harness.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#queue ⇒ Object
Returns the value of attribute queue.
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
#adapter ⇒ Object
Returns the value of attribute adapter.
19 20 21 |
# File 'lib/harness.rb', line 19 def adapter @adapter end |
#namespace ⇒ Object
Returns the value of attribute namespace.
20 21 22 |
# File 'lib/harness.rb', line 20 def namespace @namespace end |
#queue ⇒ Object
Returns the value of attribute queue.
19 20 21 |
# File 'lib/harness.rb', line 19 def queue @queue end |