Class: GovFakeNotify::Config
- Inherits:
-
Object
- Object
- GovFakeNotify::Config
- Includes:
- Singleton
- Defined in:
- lib/gov_fake_notify/config.rb
Overview
Central configuration singleton
Instance Attribute Summary collapse
-
#attachments_path ⇒ Object
Returns the value of attribute attachments_path.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#database_file ⇒ Object
Returns the value of attribute database_file.
-
#delivery_method ⇒ Object
Returns the value of attribute delivery_method.
-
#include_api_keys ⇒ Object
Returns the value of attribute include_api_keys.
-
#include_templates ⇒ Object
Returns the value of attribute include_templates.
-
#port ⇒ Object
Returns the value of attribute port.
-
#smtp_address ⇒ Object
Returns the value of attribute smtp_address.
-
#smtp_authentication ⇒ Object
Returns the value of attribute smtp_authentication.
-
#smtp_enable_starttls_auto ⇒ Object
Returns the value of attribute smtp_enable_starttls_auto.
-
#smtp_password ⇒ Object
Returns the value of attribute smtp_password.
-
#smtp_port ⇒ Object
Returns the value of attribute smtp_port.
-
#smtp_user_name ⇒ Object
Returns the value of attribute smtp_user_name.
Instance Method Summary collapse
Instance Attribute Details
#attachments_path ⇒ Object
Returns the value of attribute attachments_path.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def end |
#base_url ⇒ Object
Returns the value of attribute base_url.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def base_url @base_url end |
#database_file ⇒ Object
Returns the value of attribute database_file.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def database_file @database_file end |
#delivery_method ⇒ Object
Returns the value of attribute delivery_method.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def delivery_method @delivery_method end |
#include_api_keys ⇒ Object
Returns the value of attribute include_api_keys.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def include_api_keys @include_api_keys end |
#include_templates ⇒ Object
Returns the value of attribute include_templates.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def include_templates @include_templates end |
#port ⇒ Object
Returns the value of attribute port.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def port @port end |
#smtp_address ⇒ Object
Returns the value of attribute smtp_address.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def smtp_address @smtp_address end |
#smtp_authentication ⇒ Object
Returns the value of attribute smtp_authentication.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def smtp_authentication @smtp_authentication end |
#smtp_enable_starttls_auto ⇒ Object
Returns the value of attribute smtp_enable_starttls_auto.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def smtp_enable_starttls_auto @smtp_enable_starttls_auto end |
#smtp_password ⇒ Object
Returns the value of attribute smtp_password.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def smtp_password @smtp_password end |
#smtp_port ⇒ Object
Returns the value of attribute smtp_port.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def smtp_port @smtp_port end |
#smtp_user_name ⇒ Object
Returns the value of attribute smtp_user_name.
13 14 15 |
# File 'lib/gov_fake_notify/config.rb', line 13 def smtp_user_name @smtp_user_name end |
Instance Method Details
#from(hash) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/gov_fake_notify/config.rb', line 18 def from(hash) hash.each_pair do |key, value| next unless respond_to?(:"#{key}=") send(:"#{key}=", value) end end |