class ROM::DynamoDB::Dataset::WhereClause

Attributes

clauses[R]
maps[R]

Public Class Methods

new(maps = {}) click to toggle source
# File lib/rom/dynamodb/dataset/where_clause.rb, line 84
def initialize(maps = {})
  @clauses = Clause.new
  @maps = maps
end

Public Instance Methods

execute(&block) click to toggle source
# File lib/rom/dynamodb/dataset/where_clause.rb, line 89
def execute(&block)
  @clauses.concat(instance_exec(&block))
  self
end
method_missing(key) click to toggle source
# File lib/rom/dynamodb/dataset/where_clause.rb, line 94
def method_missing(key)
  Operand.new(key: key, val: maps[key])
end