Class: Board::Client::Organizations

Inherits:
API
  • Object
show all
Defined in:
lib/board/client/organizations.rb

Instance Method Summary collapse

Methods inherited from API

#get, #initialize, #post

Constructor Details

This class inherits a constructor from Board::Client::API

Instance Method Details

#create(attributes) ⇒ Object



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

def create(attributes)
  post("/organizations", attributes)
end

#find(id) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/board/client/organizations.rb', line 8

def find(id)
  if id.is_a?(Hash)
    get("/organizations", id)
  else
    get("/organizations/#{id}")
  end
end