Class: FreightKit::DPHE
- Inherits:
-
Carrier
- Object
- Carrier
- FreightKit::DPHE
- Defined in:
- lib/freight_kit/carriers/dphe.rb
Constant Summary collapse
- CITY_STATES =
{ ca: ['Los Angeles', 'Mammoth Lakes', 'Sacramento', 'Redding', 'West Sacramento'], nv: ['Reno', 'Sparks'] }
- REACTIVE_FREIGHT_CARRIER =
true
Class Attribute Summary collapse
-
.name ⇒ Object
readonly
Returns the value of attribute name.
-
.scac ⇒ Object
readonly
Returns the value of attribute scac.
Class Method Summary collapse
- .maximum_height ⇒ Object
- .maximum_weight ⇒ Object
- .minimum_length_for_overlength_fees ⇒ Object
- .overlength_fees_require_tariff? ⇒ Boolean
- .required_credential_types ⇒ Object
- .requirements ⇒ Object
Instance Method Summary collapse
Methods included from Trackable
Methods included from Rateable
Class Attribute Details
.name ⇒ Object (readonly)
Returns the value of attribute name.
42 43 44 |
# File 'lib/freight_kit/carriers/dphe.rb', line 42 def name @name end |
.scac ⇒ Object (readonly)
Returns the value of attribute scac.
42 43 44 |
# File 'lib/freight_kit/carriers/dphe.rb', line 42 def scac @scac end |
Class Method Details
.maximum_height ⇒ Object
6 7 8 |
# File 'lib/freight_kit/carriers/dphe.rb', line 6 def maximum_height Measured::Length.new(105, :inches) end |
.maximum_weight ⇒ Object
10 11 12 |
# File 'lib/freight_kit/carriers/dphe.rb', line 10 def maximum_weight Measured::Weight.new(10_000, :pounds) end |
.minimum_length_for_overlength_fees ⇒ Object
14 15 16 |
# File 'lib/freight_kit/carriers/dphe.rb', line 14 def minimum_length_for_overlength_fees Measured::Length.new(8, :feet) end |
.overlength_fees_require_tariff? ⇒ Boolean
18 19 20 |
# File 'lib/freight_kit/carriers/dphe.rb', line 18 def overlength_fees_require_tariff? false end |
.required_credential_types ⇒ Object
22 23 24 |
# File 'lib/freight_kit/carriers/dphe.rb', line 22 def required_credential_types %i[api selenoid website] end |
.requirements ⇒ Object
26 27 28 |
# File 'lib/freight_kit/carriers/dphe.rb', line 26 def requirements %i[credentials] end |
Instance Method Details
#pod(tracking_number) ⇒ Object
Documents
49 50 51 |
# File 'lib/freight_kit/carriers/dphe.rb', line 49 def pod(tracking_number) parse_document_response(:pod, tracking_number) end |
#scanned_bol(tracking_number) ⇒ Object
53 54 55 |
# File 'lib/freight_kit/carriers/dphe.rb', line 53 def scanned_bol(tracking_number) parse_document_response(:bol, tracking_number) end |