Sha256: 472f2041e8d19c0ed1f3a2227d93b7d8fd35f2de93776702b5d82ae9d6a4ee0b
Contents?: true
Size: 702 Bytes
Versions: 5
Compression:
Stored size: 702 Bytes
Contents
require_relative '../onfleet' module Onfleet # Organizations represent the top-most entity on Onfleet. # All entities belong to an organization. class Organizations def get(config, delegatee_id = nil) method = 'get' # change url path if a delegatee is provided if delegatee_id path = "organizations/#{delegatee_id}" else path = 'organization' end Onfleet.request(config, method.to_sym, path) end # ACTION: still needs to be tested def insert_task(config, org_id, body) method = 'put' path = "containers/organizations/#{org_id}" Onfleet.request(config, method.to_sym, path, body.to_json) end end end
Version data entries
5 entries across 5 versions & 1 rubygems