class OctadeskApi::Client::OrganizationApi
Attributes
client[RW]
Public Class Methods
new(client)
click to toggle source
# File lib/octadesk_api/client/organization_api.rb, line 6 def initialize(client) self.client = client end
Public Instance Methods
create(options = {})
click to toggle source
# File lib/octadesk_api/client/organization_api.rb, line 20 def create(options = {}) response = client.post("/organizations", options) response.parsed_response end
find(id)
click to toggle source
# File lib/octadesk_api/client/organization_api.rb, line 10 def find(id) response = client.get("/organizations/#{id}") response.parsed_response end
update(id, options = {})
click to toggle source
# File lib/octadesk_api/client/organization_api.rb, line 25 def update(id, options = {}) response = client.put("/organizations/#{id}", options) response.parsed_response end
where(options = {})
click to toggle source
# File lib/octadesk_api/client/organization_api.rb, line 15 def where(options = {}) response = client.get("/organizations", options) response.parsed_response end