Sha256: 7efcd02c548f063f5189a95afbf83481f7f049665e1a23ca6c7590a644fb2309
Contents?: true
Size: 512 Bytes
Versions: 6
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true require 'securerandom' module DynamoidAdvancedWhere module Nodes class LiteralNode attr_accessor :value, :attr_prefix def initialize(value) self.value = value self.attr_prefix = SecureRandom.hex freeze end def to_expression ":#{attr_prefix}" end def expression_attribute_names {} end def expression_attribute_values { ":#{attr_prefix}" => value } end end end end
Version data entries
6 entries across 6 versions & 2 rubygems