Module: Ashikawa::AR::Search
Overview
Provides Search functionality for your model
Class Method Summary collapse
-
.all ⇒ Array<Instance of Class>
Find all documents.
-
.by_example(example) ⇒ Array<Instance of Class>
Find all documents with the provided attributes.
-
.find(id) ⇒ Instance of Class
Find a document of the collection by ID.
-
.find_by_aql(query) ⇒ Array<Instance of Class>
Find a document using an AQL query.
-
.first_example(example) ⇒ Instance of Class
Find the first document with the provided attributes.
Class Method Details
.all ⇒ Array<Instance of Class>
Find all documents
57 |
# File 'lib/ashikawa-ar/search.rb', line 57 def self.all;end |
.by_example(example) ⇒ Array<Instance of Class>
Find all documents with the provided attributes
38 |
# File 'lib/ashikawa-ar/search.rb', line 38 def self.by_example(example);end |
.find(id) ⇒ Instance of Class
Find a document of the collection by ID
18 |
# File 'lib/ashikawa-ar/search.rb', line 18 def self.find(id);end |
.find_by_aql(query) ⇒ Array<Instance of Class>
Find a document using an AQL query
28 |
# File 'lib/ashikawa-ar/search.rb', line 28 def self.find_by_aql(query);end |
.first_example(example) ⇒ Instance of Class
Find the first document with the provided attributes
48 |
# File 'lib/ashikawa-ar/search.rb', line 48 def self.first_example(example);end |