Class: Tandarb::User
Constant Summary
Constants inherited
from Client
Client::BASE_URL
Instance Method Summary
collapse
Methods inherited from Client
#delete, #get, #post, #put
Constructor Details
#initialize(token) ⇒ User
Returns a new instance of User.
3
4
5
|
# File 'lib/tandarb/user.rb', line 3
def initialize(token)
@token = token
end
|
Instance Method Details
#all ⇒ Object
7
8
9
|
# File 'lib/tandarb/user.rb', line 7
def all
get('/users', @token)
end
|
#create(body) ⇒ Object
11
12
13
|
# File 'lib/tandarb/user.rb', line 11
def create(body)
post('/users', body, @token)
end
|