Module: Zendesk::Organization
- Included in:
- Main
- Defined in:
- lib/zendesk/organization.rb
Instance Method Summary collapse
- #create_organization(input) ⇒ Object
- #delete_organization(id) ⇒ Object
- #get_organization(id) ⇒ Object
- #get_organizations ⇒ Object
- #update_organization(input) ⇒ Object
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_organizations ⇒ Object
4 5 6 |
# File 'lib/zendesk/organization.rb', line 4 def get_organizations make_request("organizations") end |