Sha256: 21f739ee9730735b9986315045f6a3d28b0ed22b0feab6cca0aecbf1866b3bd5
Contents?: true
Size: 691 Bytes
Versions: 5
Compression:
Stored size: 691 Bytes
Contents
require_relative '../onfleet' module Onfleet # Destinations represent the location details for tasks, including exact coordinate and address information. class Destinations def create(config, body) method = 'post' path = 'destinations' Onfleet.request(config, method.to_sym, path, body.to_json) end def get(config, id) method = 'get' path = "destinations/#{id}" Onfleet.request(config, method.to_sym, path) end # ACTION: still needs to be tested def match_metadata(config, body) method = 'post' path = 'destinations/metadata' Onfleet.request(config, method.to_sym, path, body.to_json) end end end
Version data entries
5 entries across 5 versions & 1 rubygems