Class: Reelagram::Mail::Configuration
- Inherits:
-
Object
- Object
- Reelagram::Mail::Configuration
- Defined in:
- lib/reelagram/mail/configuration.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#email ⇒ Object
Returns the value of attribute email.
-
#password ⇒ Object
Returns the value of attribute password.
-
#test ⇒ Object
Returns the value of attribute test.
Instance Method Summary collapse
- #configured? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/reelagram/mail/configuration.rb', line 7 def initialize @test = false @debug = false end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
5 6 7 |
# File 'lib/reelagram/mail/configuration.rb', line 5 def debug @debug end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/reelagram/mail/configuration.rb', line 4 def email @email end |
#password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/reelagram/mail/configuration.rb', line 4 def password @password end |
#test ⇒ Object
Returns the value of attribute test.
5 6 7 |
# File 'lib/reelagram/mail/configuration.rb', line 5 def test @test end |
Instance Method Details
#configured? ⇒ Boolean
12 13 14 |
# File 'lib/reelagram/mail/configuration.rb', line 12 def configured? !email.nil? && !password.nil? end |