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/suppressions.rb,
lib/mailgun/events/events.rb,
lib/mailgun/domains/domains.rb,
lib/mailgun/webhooks/webhooks.rb,
lib/mailgun/lists/opt_in_handler.rb,
lib/mailgun/exceptions/exceptions.rb,
lib/mailgun/messages/batch_message.rb,
lib/mailgun/messages/message_builder.rb

Overview

It's the version. Yeay!

Defined Under Namespace

Classes: Address, BatchMessage, Chains, Client, CommunicationError, Domains, Error, Events, MessageBuilder, OptInHandler, ParameterError, ParseError, Response, Suppressions, Webhooks

Constant Summary collapse

VERSION =
'1.1.7'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key


25
26
27
# File 'lib/mailgun.rb', line 25

def api_key
  @api_key
end

.api_versionObject

Returns the value of attribute api_version


25
26
27
# File 'lib/mailgun.rb', line 25

def api_version
  @api_version
end

.domainObject

Returns the value of attribute domain


25
26
27
# File 'lib/mailgun.rb', line 25

def domain
  @domain
end

.mailgun_hostObject

Returns the value of attribute mailgun_host


25
26
27
# File 'lib/mailgun.rb', line 25

def mailgun_host
  @mailgun_host
end

.protocolObject

Returns the value of attribute protocol


25
26
27
# File 'lib/mailgun.rb', line 25

def protocol
  @protocol
end

.test_modeObject

Returns the value of attribute test_mode


25
26
27
# File 'lib/mailgun.rb', line 25

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


32
33
34
35
# File 'lib/mailgun.rb', line 32

def configure
  yield self
  true
end