Class: FreightKit::WRDS

Inherits:
Carrier show all
Defined in:
lib/freight_kit/carriers/wrds.rb

Constant Summary collapse

REACTIVE_FREIGHT_CARRIER =
true

Constants inherited from Carrier

Carrier::BOL_NUMBER_TRACKING_URL_TEMPLATE, Carrier::NUMBERS, Carrier::ORDER_NUMBER_TRACKING_URL_TEMPLATE, Carrier::PICKUP_NUMBER_TRACKING_URL_TEMPLATE, Carrier::PO_NUMBER_TRACKING_URL_TEMPLATE, Carrier::TRACKING_NUMBER_TRACKING_URL_TEMPLATE, Carrier::VALID_BOL_NUMBER_REGEX, Carrier::VALID_ORDER_NUMBER_REGEX, Carrier::VALID_PICKUP_NUMBER_REGEX, Carrier::VALID_PO_NUMBER_REGEX, Carrier::VALID_TRACKING_NUMBER_REGEX

Class Attribute Summary collapse

Attributes inherited from Carrier

#conf, #credentials, #customer_location, #last_request, #rates_with_excessive_length_fees, #tariff, #tmpdir

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Carrier

#available_services, #bol, bol_requires_tracking_number?, #cancel_shipment, #create_pickup, default_location, #fetch_credential, #find_estimate, #find_locations, #find_rates, find_rates_with_declared_value?, #find_tracking_number_from_pickup_number, implemented?, #initialize, maximum_address_field_length, maximum_height, maximum_weight, minimum_length_for_overlength_fees, #overlength_fee, overlength_fees_require_tariff?, pickup_number_is_tracking_number?, #scanned_bol, #serviceable_accessorials?, tracking_url_template, #valid_credentials?, valid_number_regex, #valid_tracking_number?, #validate_packages

Constructor Details

This class inherits a constructor from FreightKit::Carrier

Class Attribute Details

.nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/freight_kit/carriers/wrds.rb', line 18

def name
  @name
end

.scacObject (readonly)

Returns the value of attribute scac.



18
19
20
# File 'lib/freight_kit/carriers/wrds.rb', line 18

def scac
  @scac
end

Class Method Details

.required_credential_typesObject



6
7
8
# File 'lib/freight_kit/carriers/wrds.rb', line 6

def required_credential_types
  %i[selenoid website]
end

.requirementsObject



10
11
12
# File 'lib/freight_kit/carriers/wrds.rb', line 10

def requirements
  %i[credentials]
end

Instance Method Details

#find_tracking_info(tracking_number) ⇒ Object

Tracking



31
32
33
# File 'lib/freight_kit/carriers/wrds.rb', line 31

def find_tracking_info(tracking_number)
  parse_tracking_response(tracking_number)
end

#pod(tracking_number) ⇒ Object

Documents



24
25
26
# File 'lib/freight_kit/carriers/wrds.rb', line 24

def pod(tracking_number)
  parse_pod_response(tracking_number)
end