Class: SendGmail::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sendgmail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountObject

Gmail account



7
8
9
# File 'lib/sendgmail.rb', line 7

def 
  @account
end

#passwordObject

Gmail password



9
10
11
# File 'lib/sendgmail.rb', line 9

def password
  @password
end

#smtp_domainObject

Gmail smtp_domain



11
12
13
# File 'lib/sendgmail.rb', line 11

def smtp_domain
  @smtp_domain
end

#smtp_portObject

Gmail smtp_port



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

def smtp_port
  @smtp_port
end