Module: Trell::Client::Organizations

Included in:
Trell::Client
Defined in:
lib/trell/client/organizations.rb

Instance Method Summary collapse

Instance Method Details

#create_organization(name, options = {}) ⇒ Object Also known as: create_org



4
5
6
# File 'lib/trell/client/organizations.rb', line 4

def create_organization(name, options = {})
  post "organizations/#{name}", options
end

#delete_organization(name, options = {}) ⇒ Object Also known as: delete_org



19
20
21
# File 'lib/trell/client/organizations.rb', line 19

def delete_organization(name, options = {})
  delete "organizations/#{name}", options
end

#organization(name, options = {}) ⇒ Object Also known as: org



9
10
11
# File 'lib/trell/client/organizations.rb', line 9

def organization(name, options = {})
  get "organizations/#{name}", options
end

#update_organization(name, options = {}) ⇒ Object Also known as: update_org



14
15
16
# File 'lib/trell/client/organizations.rb', line 14

def update_organization(name, options = {})
  put "organizations/#{name}", options
end