Class: Board::Client::Organizations
- Inherits:
-
API
- Object
- API
- Board::Client::Organizations
show all
- Defined in:
- lib/board/client/organizations.rb
Instance Method Summary
collapse
Methods inherited from API
#get, #initialize, #post
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
|