Method: Dynamoid::Persistence::Upsert#initialize
- Defined in:
- lib/dynamoid/persistence/upsert.rb
#initialize(model_class, partition_key:, sort_key:, attributes:, conditions:) ⇒ Upsert
Returns a new instance of Upsert.
11 12 13 14 15 16 17 |
# File 'lib/dynamoid/persistence/upsert.rb', line 11 def initialize(model_class, partition_key:, sort_key:, attributes:, conditions:) @model_class = model_class @partition_key = partition_key @sort_key = sort_key @attributes = attributes.symbolize_keys @conditions = conditions end |