Class: FmStore::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/fm_store/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_nameObject

Returns the value of attribute account_name.



6
7
8
# File 'lib/fm_store/config.rb', line 6

def 
  @account_name
end

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/fm_store/config.rb', line 6

def host
  @host
end

#log_actionsObject

Returns the value of attribute log_actions.



6
7
8
# File 'lib/fm_store/config.rb', line 6

def log_actions
  @log_actions
end

#passwordObject

Returns the value of attribute password.



6
7
8
# File 'lib/fm_store/config.rb', line 6

def password
  @password
end

#sslObject

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