Class: SendGmail::Config
- Inherits:
-
Object
- Object
- SendGmail::Config
- Defined in:
- lib/sendgmail.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Gmail account.
-
#password ⇒ Object
Gmail password.
-
#smtp_domain ⇒ Object
Gmail smtp_domain.
-
#smtp_port ⇒ Object
Gmail smtp_port.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
15 16 17 |
# File 'lib/sendgmail.rb', line 15 def initialize(&block) block.call(self) end |
Instance Attribute Details
#account ⇒ Object
Gmail account
7 8 9 |
# File 'lib/sendgmail.rb', line 7 def account @account end |
#password ⇒ Object
Gmail password
9 10 11 |
# File 'lib/sendgmail.rb', line 9 def password @password end |
#smtp_domain ⇒ Object
Gmail smtp_domain
11 12 13 |
# File 'lib/sendgmail.rb', line 11 def smtp_domain @smtp_domain end |
#smtp_port ⇒ Object
Gmail smtp_port
13 14 15 |
# File 'lib/sendgmail.rb', line 13 def smtp_port @smtp_port end |