Module: Zendesk::Organization

Included in:
Main
Defined in:
lib/zendesk/organization.rb

Instance Method Summary collapse

Instance Method Details

#create_organization(input) ⇒ Object



12
13
14
# File 'lib/zendesk/organization.rb', line 12

def create_organization(input)
  make_request("organizations", :create => Zendesk::Main.to_xml('organization', input))
end

#delete_organization(id) ⇒ Object



20
21
22
# File 'lib/zendesk/organization.rb', line 20

def delete_organization(id)
  make_request("organizations/#{id}", :destroy => true)
end

#get_organization(id) ⇒ Object



8
9
10
# File 'lib/zendesk/organization.rb', line 8

def get_organization(id)
  make_request("organizations/#{id}")
end

#get_organizationsObject



4
5
6
# File 'lib/zendesk/organization.rb', line 4

def get_organizations
  make_request("organizations")
end

#update_organization(input) ⇒ Object



16
17
18
# File 'lib/zendesk/organization.rb', line 16

def update_organization(input)
  make_request("organizations", :update => Zendesk::Main.to_xml('organization', input))
end