Class: Courrier::Configuration
- Inherits:
-
Object
- Object
- Courrier::Configuration
- Defined in:
- lib/courrier/configuration.rb,
lib/courrier/configuration/inbox.rb,
lib/courrier/configuration/providers.rb
Defined Under Namespace
Classes: Inbox, ProviderConfig, Providers
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#auto_generate_text ⇒ Object
Returns the value of attribute auto_generate_text.
-
#bcc ⇒ Object
Returns the value of attribute bcc.
-
#cc ⇒ Object
Returns the value of attribute cc.
-
#default_url_options ⇒ Object
Returns the value of attribute default_url_options.
-
#email_path ⇒ Object
Returns the value of attribute email_path.
-
#from ⇒ Object
Returns the value of attribute from.
-
#inbox ⇒ Object
readonly
Returns the value of attribute inbox.
-
#layouts ⇒ Object
Returns the value of attribute layouts.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#providers ⇒ Object
readonly
Returns the value of attribute providers.
-
#reply_to ⇒ Object
Returns the value of attribute reply_to.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/courrier/configuration.rb', line 26 def initialize @provider = "logger" @api_key = nil @logger = ::Logger.new($stdout) @email_path = default_email_path @layouts = nil @default_url_options = {host: ""} @auto_generate_text = false @from = nil @reply_to = nil @cc = nil @bcc = nil @providers = Courrier::Configuration::Providers.new @inbox = Courrier::Configuration::Inbox.new end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def api_key @api_key end |
#auto_generate_text ⇒ Object
Returns the value of attribute auto_generate_text.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def auto_generate_text @auto_generate_text end |
#bcc ⇒ Object
Returns the value of attribute bcc.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def bcc @bcc end |
#cc ⇒ Object
Returns the value of attribute cc.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def cc @cc end |
#default_url_options ⇒ Object
Returns the value of attribute default_url_options.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def @default_url_options end |
#email_path ⇒ Object
Returns the value of attribute email_path.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def email_path @email_path end |
#from ⇒ Object
Returns the value of attribute from.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def from @from end |
#inbox ⇒ Object (readonly)
Returns the value of attribute inbox.
24 25 26 |
# File 'lib/courrier/configuration.rb', line 24 def inbox @inbox end |
#layouts ⇒ Object
Returns the value of attribute layouts.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def layouts @layouts end |
#logger ⇒ Object
Returns the value of attribute logger.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def logger @logger end |
#provider ⇒ Object
Returns the value of attribute provider.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def provider @provider end |
#providers ⇒ Object (readonly)
Returns the value of attribute providers.
24 25 26 |
# File 'lib/courrier/configuration.rb', line 24 def providers @providers end |
#reply_to ⇒ Object
Returns the value of attribute reply_to.
22 23 24 |
# File 'lib/courrier/configuration.rb', line 22 def reply_to @reply_to end |