Module: Mailgun

Defined in:
lib/mailgun.rb,
lib/mailgun/chains.rb,
lib/mailgun/client.rb,
lib/mailgun/address.rb,
lib/mailgun/version.rb,
lib/mailgun/response.rb,
lib/mailgun/logs/logs.rb,
lib/mailgun/tags/tags.rb,
lib/mailgun/suppressions.rb,
lib/mailgun/events/events.rb,
lib/mailgun/domains/domains.rb,
lib/mailgun/metrics/metrics.rb,
lib/mailgun/webhooks/webhooks.rb,
lib/mailgun/templates/templates.rb,
lib/mailgun/lists/opt_in_handler.rb,
lib/mailgun/exceptions/exceptions.rb,
lib/mailgun/messages/batch_message.rb,
lib/mailgun/subaccounts/subaccounts.rb,
lib/mailgun/messages/message_builder.rb,
lib/mailgun/helpers/api_version_checker.rb

Overview

It’s the version. Yeay!

Defined Under Namespace

Modules: ApiVersionChecker Classes: Address, BadRequest, BatchMessage, Chains, Client, CommunicationError, Domains, Error, Events, Logs, MessageBuilder, Metrics, OptInHandler, ParameterError, ParseError, Response, Subaccounts, Suppressions, Tags, Templates, Unauthorized, Webhooks

Constant Summary collapse

VERSION =
'1.4.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_hostObject

Returns the value of attribute api_host.



30
31
32
# File 'lib/mailgun.rb', line 30

def api_host
  @api_host
end

.api_keyObject

Returns the value of attribute api_key.



30
31
32
# File 'lib/mailgun.rb', line 30

def api_key
  @api_key
end

.api_versionObject

Returns the value of attribute api_version.



30
31
32
# File 'lib/mailgun.rb', line 30

def api_version
  @api_version
end

.domainObject

Returns the value of attribute domain.



30
31
32
# File 'lib/mailgun.rb', line 30

def domain
  @domain
end

.mailgun_hostObject

Returns the value of attribute mailgun_host.



30
31
32
# File 'lib/mailgun.rb', line 30

def mailgun_host
  @mailgun_host
end

.protocolObject

Returns the value of attribute protocol.



30
31
32
# File 'lib/mailgun.rb', line 30

def protocol
  @protocol
end

.proxy_urlObject

Returns the value of attribute proxy_url.



30
31
32
# File 'lib/mailgun.rb', line 30

def proxy_url
  @proxy_url
end

.test_modeObject

Returns the value of attribute test_mode.



30
31
32
# File 'lib/mailgun.rb', line 30

def test_mode
  @test_mode
end

Class Method Details

.configure {|_self| ... } ⇒ Object Also known as: config

Yields:

  • (_self)

Yield Parameters:

  • _self (Mailgun)

    the object that the method was called on



39
40
41
42
# File 'lib/mailgun.rb', line 39

def configure
  yield self
  true
end