Module: Unforlogistics::Core::ShipmentVehicleKinds
- Included in:
- Api
- Defined in:
- lib/unforlogistics/core/shipment_vehicle_kinds.rb
Instance Method Summary collapse
- #get_shipment_vehicle_kind(code) ⇒ Object
- #get_shipment_vehicle_kinds ⇒ Object
- #update_shipment_vehicle_kind(code, attrs = {}) ⇒ Object
Instance Method Details
#get_shipment_vehicle_kind(code) ⇒ Object
8 9 10 |
# File 'lib/unforlogistics/core/shipment_vehicle_kinds.rb', line 8 def get_shipment_vehicle_kind(code) get_request("/shipment_vehicle_kinds/#{code}").body end |
#get_shipment_vehicle_kinds ⇒ Object
4 5 6 |
# File 'lib/unforlogistics/core/shipment_vehicle_kinds.rb', line 4 def get_shipment_vehicle_kinds get_request('/shipment_vehicle_kinds').body end |
#update_shipment_vehicle_kind(code, attrs = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/unforlogistics/core/shipment_vehicle_kinds.rb', line 12 def update_shipment_vehicle_kind(code, attrs={}) response = put_request("/shipment_vehicle_kinds/#{code}", attrs) get_persistance_response(response) end |