Module: Unforlogistics::Core::ShipmentRegions
- Included in:
- Api
- Defined in:
- lib/unforlogistics/core/shipment_regions.rb
Instance Method Summary collapse
- #create_shipment_region(attrs = {}) ⇒ Object
- #get_shipment_region(id) ⇒ Object
- #get_shipment_regions(filters = {}) ⇒ Object
- #update_shipment_region(id, attrs = {}) ⇒ Object
Instance Method Details
#create_shipment_region(attrs = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/unforlogistics/core/shipment_regions.rb', line 14 def create_shipment_region(attrs={}) response = post_request('/shipment_regions', attrs) get_persistance_response(response) end |
#get_shipment_region(id) ⇒ Object
10 11 12 |
# File 'lib/unforlogistics/core/shipment_regions.rb', line 10 def get_shipment_region(id) get_request("/shipment_regions/#{id}").body end |
#get_shipment_regions(filters = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/unforlogistics/core/shipment_regions.rb', line 4 def get_shipment_regions(filters={}) response = get_request('/shipment_regions', filters) get_paging_response(response) end |
#update_shipment_region(id, attrs = {}) ⇒ Object
20 21 22 23 24 |
# File 'lib/unforlogistics/core/shipment_regions.rb', line 20 def update_shipment_region(id, attrs={}) response = put_request("/shipment_regions/#{id}", attrs) get_persistance_response(response) end |