Class: FmStore::Config
- Inherits:
-
Object
- Object
- FmStore::Config
- Includes:
- Singleton
- Defined in:
- lib/fm_store/config.rb
Instance Attribute Summary collapse
-
#account_name ⇒ Object
Returns the value of attribute account_name.
-
#host ⇒ Object
Returns the value of attribute host.
-
#log_actions ⇒ Object
Returns the value of attribute log_actions.
-
#password ⇒ Object
Returns the value of attribute password.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #set_settings(settings) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 |
# File 'lib/fm_store/config.rb', line 8 def initialize @ssl = false @log_actions = true end |
Instance Attribute Details
#account_name ⇒ Object
Returns the value of attribute account_name.
6 7 8 |
# File 'lib/fm_store/config.rb', line 6 def account_name @account_name end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/fm_store/config.rb', line 6 def host @host end |
#log_actions ⇒ Object
Returns the value of attribute log_actions.
6 7 8 |
# File 'lib/fm_store/config.rb', line 6 def log_actions @log_actions end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/fm_store/config.rb', line 6 def password @password end |
#ssl ⇒ Object
Returns the value of attribute ssl.
6 7 8 |
# File 'lib/fm_store/config.rb', line 6 def ssl @ssl end |
Instance Method Details
#set_settings(settings) ⇒ Object
13 14 15 16 17 |
# File 'lib/fm_store/config.rb', line 13 def set_settings(settings) settings.each_pair do |name, value| send("#{name}=", value) if respond_to?(name) end end |