Sha256: 4f125b070e75a1ee7e1d15c12a366931f8fedfea59b8fac71d214d1e950af12e
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
module Fulfillment module Resources module Organizations extend self def find_all response = Request.new("organizations").get response.body end def find(organization_id, type_name = nil) request = ["organizations", organization_id, type_name].compact.join("/") response = Request.new(request).get response.body end def update(organization_id, type_name, data) response = Request.new( "organizations/#{organization_id}/#{type_name}", {data: data} ).post response.body end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fulfillment-api-1.1.7 | lib/fulfillment/resources/organizations.rb |