Class: User
- Inherits:
-
Object
- Object
- User
- Defined in:
- lib/tacklebox/components/user.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
Instance Method Summary collapse
- #create(service_id, user_data) ⇒ Object
- #delete(service_id, user_id) ⇒ Object
- #get(service_id, user_id) ⇒ Object
-
#initialize(config) ⇒ User
constructor
A new instance of User.
- #list(service_id) ⇒ Object
Constructor Details
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
4 5 6 |
# File 'lib/tacklebox/components/user.rb', line 4 def api @api end |
Instance Method Details
#create(service_id, user_data) ⇒ Object
14 15 16 |
# File 'lib/tacklebox/components/user.rb', line 14 def create(service_id, user_data) self.api.create_user(service_id, user_data) end |
#delete(service_id, user_id) ⇒ Object
22 23 24 |
# File 'lib/tacklebox/components/user.rb', line 22 def delete(service_id, user_id) self.api.delete_user(service_id, user_id) end |
#get(service_id, user_id) ⇒ Object
18 19 20 |
# File 'lib/tacklebox/components/user.rb', line 18 def get(service_id, user_id) self.api.get_user(service_id, user_id) end |
#list(service_id) ⇒ Object
10 11 12 |
# File 'lib/tacklebox/components/user.rb', line 10 def list(service_id) self.api.list_users(service_id) end |