Class: Appwrite::Query
- Inherits:
-
Object
- Object
- Appwrite::Query
- Defined in:
- lib/appwrite/query.rb
Class Method Summary collapse
- .cursorAfter(id) ⇒ Object
- .cursorBefore(id) ⇒ Object
- .equal(attribute, value) ⇒ Object
- .greaterThan(attribute, value) ⇒ Object
- .greaterThanEqual(attribute, value) ⇒ Object
- .lessThan(attribute, value) ⇒ Object
- .lessThanEqual(attribute, value) ⇒ Object
- .limit(limit) ⇒ Object
- .notEqual(attribute, value) ⇒ Object
- .offset(offset) ⇒ Object
- .orderAsc(attribute) ⇒ Object
- .orderDesc(attribute) ⇒ Object
- .search(attribute, value) ⇒ Object
Class Method Details
.cursorAfter(id) ⇒ Object
44 45 46 |
# File 'lib/appwrite/query.rb', line 44 def cursorAfter(id) return "cursorAfter(\"#{id}\")" end |
.cursorBefore(id) ⇒ Object
40 41 42 |
# File 'lib/appwrite/query.rb', line 40 def cursorBefore(id) return "cursorBefore(\"#{id}\")" end |
.equal(attribute, value) ⇒ Object
4 5 6 |
# File 'lib/appwrite/query.rb', line 4 def equal(attribute, value) return addQuery(attribute, "equal", value) end |
.greaterThan(attribute, value) ⇒ Object
20 21 22 |
# File 'lib/appwrite/query.rb', line 20 def greaterThan(attribute, value) return addQuery(attribute, "greaterThan", value) end |
.greaterThanEqual(attribute, value) ⇒ Object
24 25 26 |
# File 'lib/appwrite/query.rb', line 24 def greaterThanEqual(attribute, value) return addQuery(attribute, "greaterThanEqual", value) end |
.lessThan(attribute, value) ⇒ Object
12 13 14 |
# File 'lib/appwrite/query.rb', line 12 def lessThan(attribute, value) return addQuery(attribute, "lessThan", value) end |
.lessThanEqual(attribute, value) ⇒ Object
16 17 18 |
# File 'lib/appwrite/query.rb', line 16 def lessThanEqual(attribute, value) return addQuery(attribute, "lessThanEqual", value) end |
.limit(limit) ⇒ Object
48 49 50 |
# File 'lib/appwrite/query.rb', line 48 def limit(limit) return "limit(#{limit})" end |
.notEqual(attribute, value) ⇒ Object
8 9 10 |
# File 'lib/appwrite/query.rb', line 8 def notEqual(attribute, value) return addQuery(attribute, "notEqual", value) end |
.offset(offset) ⇒ Object
52 53 54 |
# File 'lib/appwrite/query.rb', line 52 def offset(offset) return "offset(#{offset})" end |
.orderAsc(attribute) ⇒ Object
32 33 34 |
# File 'lib/appwrite/query.rb', line 32 def orderAsc(attribute) return "orderAsc(\"#{attribute}\")" end |
.orderDesc(attribute) ⇒ Object
36 37 38 |
# File 'lib/appwrite/query.rb', line 36 def orderDesc(attribute) return "orderDesc(\"#{attribute}\")" end |
.search(attribute, value) ⇒ Object
28 29 30 |
# File 'lib/appwrite/query.rb', line 28 def search(attribute, value) return addQuery(attribute, "search", value) end |