Class: DineroMail::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



3
4
5
# File 'lib/dinero_mail/configuration.rb', line 3

def environment
  @environment
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/dinero_mail/configuration.rb', line 3

def password
  @password
end

#secretObject

Returns the value of attribute secret.



3
4
5
# File 'lib/dinero_mail/configuration.rb', line 3

def secret
  @secret
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/dinero_mail/configuration.rb', line 3

def username
  @username
end

Instance Method Details

#production?Boolean

Returns:

  • (Boolean)


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

def production?
  self.environment == :production
end

#test?Boolean

Returns:

  • (Boolean)


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

def test?
  self.environment == :test
end