Class: Mailgat::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



49
50
51
52
53
54
# File 'lib/mailgat.rb', line 49

def initialize
  @api_base = "https://api.mailgun.net/v2"
  @api_key = ENV["MAILGUN_API_KEY"]
  @public_key = ENV["MAILGUN_PUBLIC_KEY"]
  @adapter = Faraday.default_adapter
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



47
48
49
# File 'lib/mailgat.rb', line 47

def adapter
  @adapter
end

#api_baseObject

Returns the value of attribute api_base.



47
48
49
# File 'lib/mailgat.rb', line 47

def api_base
  @api_base
end

#api_keyObject

Returns the value of attribute api_key.



47
48
49
# File 'lib/mailgat.rb', line 47

def api_key
  @api_key
end

#public_keyObject

Returns the value of attribute public_key.



47
48
49
# File 'lib/mailgat.rb', line 47

def public_key
  @public_key
end