Class: Board::Client::Users
- Inherits:
-
API
- Object
- API
- Board::Client::Users
show all
- Defined in:
- lib/board/client/users.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/users.rb', line 4
def create(attributes)
post("/users", attributes)
end
|
#find(id) ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/board/client/users.rb', line 8
def find(id)
if id.is_a?(Hash)
get("/users", id)
else
get("/users/#{id}")
end
end
|
#unsubscribe(email) ⇒ Object
16
17
18
|
# File 'lib/board/client/users.rb', line 16
def unsubscribe(email)
get("/users/unsubscribe", :email => email)
end
|