Module: Aws::Record::Query::QueryClassMethods
- Included in:
- Aws::Record
- Defined in:
- lib/aws-record/record/query.rb
Instance Method Summary collapse
-
#query(opts) ⇒ Aws::Record::ItemCollection
This method calls Aws::DynamoDB::Client#query, populating the
:table_name
parameter from the model class, and combining this with the other parameters you provide. -
#scan(opts = {}) ⇒ Aws::Record::ItemCollection
This method calls Aws::DynamoDB::Client#scan, populating the
:table_name
parameter from the model class, and combining this with the other parameters you provide.
Instance Method Details
#query(opts) ⇒ Aws::Record::ItemCollection
This method calls Aws::DynamoDB::Client#query, populating the :table_name
parameter from the model class, and combining this with the other parameters you provide.
63 64 65 66 |
# File 'lib/aws-record/record/query.rb', line 63 def query(opts) query_opts = opts.merge(table_name: table_name) ItemCollection.new(:query, query_opts, self, dynamodb_client) end |
#scan(opts = {}) ⇒ Aws::Record::ItemCollection
This method calls Aws::DynamoDB::Client#scan, populating the :table_name
parameter from the model class, and combining this with the other parameters you provide.
101 102 103 104 |
# File 'lib/aws-record/record/query.rb', line 101 def scan(opts = {}) scan_opts = opts.merge(table_name: table_name) ItemCollection.new(:scan, scan_opts, self, dynamodb_client) end |