Class: GovFakeNotify::Config

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

Overview

Central configuration singleton

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attachments_pathObject

Returns the value of attribute attachments_path.



13
14
15
# File 'lib/gov_fake_notify/config.rb', line 13

def attachments_path
  @attachments_path
end

#base_urlObject

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_fileObject

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_methodObject

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_keysObject

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_templatesObject

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

#portObject

Returns the value of attribute port.



13
14
15
# File 'lib/gov_fake_notify/config.rb', line 13

def port
  @port
end

#smtp_addressObject

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_authenticationObject

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_autoObject

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_passwordObject

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_portObject

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_nameObject

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