Class: Appwrite::Permission
- Inherits:
-
Object
- Object
- Appwrite::Permission
- Defined in:
- lib/appwrite/permission.rb
Class Method Summary collapse
- .create(role) ⇒ Object
- .delete(role) ⇒ Object
- .read(role) ⇒ Object
- .update(role) ⇒ Object
- .write(role) ⇒ Object
Class Method Details
.create(role) ⇒ Object
10 11 12 |
# File 'lib/appwrite/permission.rb', line 10 def create(role) return "create(\"#{role}\")" end |
.delete(role) ⇒ Object
16 17 18 |
# File 'lib/appwrite/permission.rb', line 16 def delete(role) return "delete(\"#{role}\")" end |
.read(role) ⇒ Object
4 5 6 |
# File 'lib/appwrite/permission.rb', line 4 def read(role) return "read(\"#{role}\")" end |
.update(role) ⇒ Object
13 14 15 |
# File 'lib/appwrite/permission.rb', line 13 def update(role) return "update(\"#{role}\")" end |
.write(role) ⇒ Object
7 8 9 |
# File 'lib/appwrite/permission.rb', line 7 def write(role) return "write(\"#{role}\")" end |