Method: Odfl#initialize

Defined in:
lib/odfl.rb

#initialize(log = false, log_level = :debug, pretty_print_xml = false) ⇒ Odfl

:notnew: stops RDoc from seeing the initialize method



62
63
64
65
66
67
68
69
70
71
72
# File 'lib/odfl.rb', line 62

def initialize(log = false, log_level= :debug, pretty_print_xml = false) #:notnew: stops RDoc from seeing the initialize method

  @client = Savon.client(wsdl: 'https://www.odfl.com/wsRate_v3/services/Rate?wsdl', ssl_verify_mode: :none,
                          log: log, log_level: log_level, pretty_print_xml: pretty_print_xml)
  self.freight = Array.new
  self.accessorials = Array.new
  self.tariff = 559
  self.currencyFormat = "USD"
  self.requestReferenceNumber = false
  self.weightUnits = "LBS"
  self.sendEmailOffers = false
end