Class: Smith::Config
- Inherits:
-
Object
- Object
- Smith::Config
- Defined in:
- lib/smith/config.rb
Constant Summary collapse
- CONFIG_FILENAME =
'.smithrc'
Instance Attribute Summary collapse
-
#agency ⇒ Object
Returns the value of attribute agency.
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#amqp ⇒ Object
Returns the value of attribute amqp.
-
#eventmachine ⇒ Object
Returns the value of attribute eventmachine.
-
#logging ⇒ Object
Returns the value of attribute logging.
-
#ruby ⇒ Object
Returns the value of attribute ruby.
-
#smith ⇒ Object
Returns the value of attribute smith.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #path ⇒ Object
- #reload ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
43 44 45 |
# File 'lib/smith/config.rb', line 43 def initialize load_config end |
Instance Attribute Details
#agency ⇒ Object
Returns the value of attribute agency.
14 15 16 |
# File 'lib/smith/config.rb', line 14 def agency @agency end |
#agent ⇒ Object
Returns the value of attribute agent.
14 15 16 |
# File 'lib/smith/config.rb', line 14 def agent @agent end |
#amqp ⇒ Object
Returns the value of attribute amqp.
14 15 16 |
# File 'lib/smith/config.rb', line 14 def amqp @amqp end |
#eventmachine ⇒ Object
Returns the value of attribute eventmachine.
14 15 16 |
# File 'lib/smith/config.rb', line 14 def eventmachine @eventmachine end |
#logging ⇒ Object
Returns the value of attribute logging.
14 15 16 |
# File 'lib/smith/config.rb', line 14 def logging @logging end |
#ruby ⇒ Object
Returns the value of attribute ruby.
14 15 16 |
# File 'lib/smith/config.rb', line 14 def ruby @ruby end |
#smith ⇒ Object
Returns the value of attribute smith.
14 15 16 |
# File 'lib/smith/config.rb', line 14 def smith @smith end |
Class Method Details
Instance Method Details
#path ⇒ Object
55 56 57 |
# File 'lib/smith/config.rb', line 55 def path @config_file end |
#to_hash ⇒ Object
51 52 53 |
# File 'lib/smith/config.rb', line 51 def to_hash {:agent => @agent, :agency => @agency, :amqp => @amqp, :eventmachine => @eventmachine, :logging => @logging, :smith => @smith, :ruby => @ruby} end |