Method: Odfl#set_origin
- Defined in:
- lib/odfl.rb
#set_origin(zip, country = "USA") ⇒ Object
Allows the user to set the origin zip and country of the shipment
Attributes
-
zip- the zip code of the shipment origin -
country- the country of the shipment origin defaults to USA
Usage
-
Example usage 2
quote = Odfl.new
quote.set_origin(20602)
-
Example usage 2
quote = Odfl.new
quote.set_origin(90210, "USA")
88 89 90 91 |
# File 'lib/odfl.rb', line 88 def set_origin(zip, country = "USA") @originPostalCode = zip @originCountry = country end |