Class: Shipping
- Inherits:
-
Object
- Object
- Shipping
- Defined in:
- lib/bsale_api/shipping.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize ⇒ Shipping
constructor
A new instance of Shipping.
Constructor Details
#initialize ⇒ Shipping
Returns a new instance of Shipping.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/bsale_api/shipping.rb', line 4 def initialize @object = { documentTypeId: 1, officeId: 1, expirationDate: 1_409_149_934, emissionDate: 1_409_149_934, shippingTypeId: 6, municipality: 'Puerto Varas', city: 'Puerto Varas', address: 'la quebrada 1005', declareSii: 1, recipient: 'Andres Gallardo', details: [ { taxId: '[1]', quantity: 1, comment: 'PASAJERO: JAIME GONZALEZ', netUnitValue: 12_000 } ], client: { municipality: 'PUERTO MONTT', code: '13121776-5', activity: 'SERV. TELECOMUNICACIONES', company: 'JAIME ALTAMIRANO SOTO', city: 'PUERTO MONTT', address: 'EMILIO RECABARREN 231' } } end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
2 3 4 |
# File 'lib/bsale_api/shipping.rb', line 2 def object @object end |