Class: Shipvine::BillOfLading
- Defined in:
- lib/shipvine/bill_of_lading.rb
Constant Summary
Constants inherited from Base
Shipvine::Base::WAREHOUSE_XSD_FILE
Instance Attribute Summary collapse
-
#formatted ⇒ Object
Returns the value of attribute formatted.
-
#numeric ⇒ Object
Returns the value of attribute numeric.
Class Method Summary collapse
Methods inherited from Base
Instance Attribute Details
#formatted ⇒ Object
Returns the value of attribute formatted.
4 5 6 |
# File 'lib/shipvine/bill_of_lading.rb', line 4 def formatted @formatted end |
#numeric ⇒ Object
Returns the value of attribute numeric.
4 5 6 |
# File 'lib/shipvine/bill_of_lading.rb', line 4 def numeric @numeric end |
Class Method Details
.generate ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/shipvine/bill_of_lading.rb', line 6 def self.generate response = self.client.request( :post, '/bol-numbers/' + Shipvine.merchant_code, '' ) lading = self.new lading.formatted = response["BillOfLadingNumber"]["Formatted"] lading.numeric = response["BillOfLadingNumber"]["Numeric"] lading end |