Class: Snap::Api::ShipmentStatus

Inherits:
Object
  • Object
show all
Extended by:
Client
Includes:
HTTParty
Defined in:
lib/snap/api/shipment_status.rb

Overview

Interact with Snapfulfil’s shipment status endpoint.

Class Method Summary collapse

Methods included from Client

client, delete, get, post, put, snoop_for_errors, wrap_response

Class Method Details

.modelObject



13
14
15
# File 'lib/snap/api/shipment_status.rb', line 13

def self.model
  Snap::ShipmentStatus
end

.update(options) ⇒ Object



8
9
10
11
# File 'lib/snap/api/shipment_status.rb', line 8

def self.update(options)
  shipment_status = Snap::ShipmentStatus.new(options)
  client.put("/shipmentstatus/#{shipment_status.ShipmentId}", body: shipment_status.to_json)
end