class Sagekit::AR::AccountSetsResource
Public Instance Methods
create(company, **attributes)
click to toggle source
# File lib/sagekit/resources/AR/account_sets.rb, line 12 def create(company, **attributes) AccountSet.new post_request("#{company}/AR/ARAccountSets", body: attributes).body end
delete(company, id)
click to toggle source
# File lib/sagekit/resources/AR/account_sets.rb, line 21 def delete(company, id) delete_request("#{company}/AR/ARAccountSets('#{id}')") true end
list(company, **params)
click to toggle source
# File lib/sagekit/resources/AR/account_sets.rb, line 4 def list(company, **params) Collection.from_response get_request("#{company}/AR/ARAccountSets?$count=true", params: params), type: AccountSet end
retreive(company, id, **params)
click to toggle source
# File lib/sagekit/resources/AR/account_sets.rb, line 8 def retreive(company, id, **params) AccountSet.new get_request("#{company}/AR/ARAccountSets('#{id}')", params: params).body end
update(company, id, **attributes)
click to toggle source
# File lib/sagekit/resources/AR/account_sets.rb, line 16 def update(company, id, **attributes) patch_request("#{company}/AR/ARAccountSets('#{id}')", body: attributes) true end