class FedexWebServices::Soap::Rate::RatePortType

Constants

DefaultEndpointUrl
Methods

Public Class Methods

new(endpoint_url = nil) click to toggle source
Calls superclass method
# File lib/fedex_web_services/soap/RateServiceDefinitionsDriver.rb, line 23
def initialize(endpoint_url = nil)
  endpoint_url ||= DefaultEndpointUrl
  super(endpoint_url, nil)
  self.mapping_registry = RateServiceDefinitionsMappingRegistry::EncodedRegistry
  self.literal_mapping_registry = RateServiceDefinitionsMappingRegistry::LiteralRegistry
  init_methods
end

Private Instance Methods

init_methods() click to toggle source
# File lib/fedex_web_services/soap/RateServiceDefinitionsDriver.rb, line 33
def init_methods
  Methods.each do |definitions|
    opt = definitions.last
    if opt[:request_style] == :document
      add_document_operation(*definitions)
    else
      add_rpc_operation(*definitions)
      qname = definitions[0]
      name = definitions[2]
      if qname.name != name and qname.name.capitalize == name.capitalize
        ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
          __send__(name, *arg)
        end
      end
    end
  end
end