Module: Postal

Extended by:
Postal
Included in:
Postal
Defined in:
lib/postal.rb,
lib/postal/base.rb,
lib/postal/list.rb,
lib/postal/member.rb,
lib/postal/mailing.rb,
lib/postal/lmapi/lmapi.rb,
lib/postal/lmapi/lmapi_driver.rb,
lib/postal/lmapi/lmapi_mapping_registry.rb

Defined Under Namespace

Modules: Lmapi Classes: Base, CouldNotCreateMember, CouldNotSendMailing, CouldNotUpdateMember, List, Mailing, Member, WouldDeleteAllMembers

Constant Summary collapse

VERSION =
'0.1.0'
LOGGER =
Logger.new(STDOUT)
DEFAULT_OPTIONS =
{ :debug => false }

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#driverObject

Make a driver instance available at Postal.driver



36
37
38
39
40
41
42
# File 'lib/postal.rb', line 36

def driver
  unless @driver
    @driver = Postal::Lmapi::Soap.new
    @driver.options['protocol.http.basic_auth'] << [@options[:wsdl], @options[:username], @options[:password]]
  end
  return @driver
end