Class: Reelagram::Mail::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/reelagram/mail/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#debugObject

Returns the value of attribute debug.



5
6
7
# File 'lib/reelagram/mail/configuration.rb', line 5

def debug
  @debug
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/reelagram/mail/configuration.rb', line 4

def email
  @email
end

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/reelagram/mail/configuration.rb', line 4

def password
  @password
end

#testObject

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

Returns:

  • (Boolean)


12
13
14
# File 'lib/reelagram/mail/configuration.rb', line 12

def configured?
  !email.nil? && !password.nil?
end