Class: Mailgun::Tracking::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/mailgun/tracking/configuration.rb

Overview

Configuration for Mailgun Tracking.

Constant Summary collapse

DEFAULT_ENDPOINT =
'/mailgun'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Initialize a Mailgun::Tracking::Configuration object.



20
21
22
# File 'lib/mailgun/tracking/configuration.rb', line 20

def initialize
  @endpoint = DEFAULT_ENDPOINT
end

Instance Attribute Details

#api_keyString

Returns Mailgun API public key.

Returns:

  • (String)

    Mailgun API public key.



14
15
16
# File 'lib/mailgun/tracking/configuration.rb', line 14

def api_key
  @api_key
end

#endpointString

Returns Mailgun callback URL.

Returns:

  • (String)

    Mailgun callback URL.



17
18
19
# File 'lib/mailgun/tracking/configuration.rb', line 17

def endpoint
  @endpoint
end