Module: TenThousandFeet::API::Users
- Included in:
- Client
- Defined in:
- lib/ten_thousand_feet/api/users.rb
Instance Method Summary collapse
- #create_user(options = {}) ⇒ Object
- #get_users(options = {}) ⇒ Object
- #show_user(id, options = {}) ⇒ Object
- #update_user(id, options = {}) ⇒ Object
Instance Method Details
#create_user(options = {}) ⇒ Object
12 13 14 |
# File 'lib/ten_thousand_feet/api/users.rb', line 12 def create_user( = {}) post('/users', ) end |
#get_users(options = {}) ⇒ Object
4 5 6 |
# File 'lib/ten_thousand_feet/api/users.rb', line 4 def get_users( = {}) get('/users', ) end |
#show_user(id, options = {}) ⇒ Object
8 9 10 |
# File 'lib/ten_thousand_feet/api/users.rb', line 8 def show_user(id, = {}) get("/users/#{id}", ) end |
#update_user(id, options = {}) ⇒ Object
16 17 18 |
# File 'lib/ten_thousand_feet/api/users.rb', line 16 def update_user(id, = {}) put("/users/#{id}", ) end |