module ShipCompliant

Constants

VERSION

Attributes

configuration[RW]
ship_compliant_client[RW]

Public Class Methods

client() click to toggle source

Returns an instance of Client.

# File lib/ship_compliant/client.rb, line 7
def self.client
  self.ship_compliant_client ||= new_client_from_wsdl(configuration.wsdl)
end
configure() { |configuration| ... } click to toggle source
# File lib/ship_compliant/configuration.rb, line 6
def self.configure
  yield(configuration)
end
wsdl=(wsdl) click to toggle source

Replaces client with custom WSDL

ShipCompliant.wsdl = 'https://ws-dev.shipcompliant.com/Services/1.2/ProductService.asmx?WSDL'
# File lib/ship_compliant/client.rb, line 14
def self.wsdl=(wsdl)
  self.ship_compliant_client = new_client_from_wsdl(wsdl)
end

Private Class Methods

new_client_from_wsdl(wsdl) click to toggle source

Creates a new client from a WSDL url.

# File lib/ship_compliant/client.rb, line 21
def self.new_client_from_wsdl(wsdl)
  Client.new(wsdl: wsdl, log: configuration.log, filters: %W[PartnerKey Username Password])
end