Class: FreightKit::TQYL

Inherits:
Carrier
  • Object
show all
Includes:
Pickupable, Rateable, Trackable
Defined in:
lib/freight_kit/carriers/tqyl.rb

Constant Summary collapse

REACTIVE_FREIGHT_CARRIER =
true
API_SCOPE =
'https://tqlidentity.onmicrosoft.com/services_combined/LTLQuotes.Tender'

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from Pickupable

#create_pickup

Methods included from Trackable

#find_tracking_info

Methods included from Rateable

#find_rates

Class Attribute Details

.nameObject (readonly)

Returns the value of attribute name.



26
27
28
# File 'lib/freight_kit/carriers/tqyl.rb', line 26

def name
  @name
end

.scacObject (readonly)

Returns the value of attribute scac.



26
27
28
# File 'lib/freight_kit/carriers/tqyl.rb', line 26

def scac
  @scac
end

Class Method Details

.minimum_length_for_overlength_feesObject



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

def minimum_length_for_overlength_fees
  Measured::Length.new(6, :feet)
end

.overlength_fees_require_tariff?Boolean

Returns:

  • (Boolean)


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

def overlength_fees_require_tariff?
  false
end

.required_credential_typesObject



14
15
16
# File 'lib/freight_kit/carriers/tqyl.rb', line 14

def required_credential_types
  %i[api]
end

.requirementsObject



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

def requirements
  %i[credentials]
end