Class: KintoBox::KintoServer
- Inherits:
-
KintoObject
- Object
- KintoObject
- KintoBox::KintoServer
- Defined in:
- lib/kinto_box/kinto_server.rb
Instance Attribute Summary
Attributes inherited from KintoObject
Instance Method Summary collapse
- #create_bucket(id) ⇒ Object
-
#current_user_id ⇒ String
Get current user id.
- #url_path ⇒ Object
Methods inherited from KintoObject
#add_permission, #child, child_class, #child_path, #count_children, #count_children_request, #create_child, #create_child_request, #delete, #delete_children, #delete_children_request, #delete_request, #exists?, #info, #info_request, #initialize, #list_children, #list_children_request, path_name, #permissions, #reload, #replace, #replace_permission, #replace_request, #update, #update_request
Constructor Details
This class inherits a constructor from KintoBox::KintoObject
Instance Method Details
#create_bucket(id) ⇒ Object
27 28 29 |
# File 'lib/kinto_box/kinto_server.rb', line 27 def create_bucket(id) create_child(id: id) end |
#current_user_id ⇒ String
Get current user id
23 24 25 |
# File 'lib/kinto_box/kinto_server.rb', line 23 def current_user_id info['user']['id'] end |
#url_path ⇒ Object
17 18 19 |
# File 'lib/kinto_box/kinto_server.rb', line 17 def url_path '/' end |