class Cuprum::Collections::Basic::Commands::FindMany
Command
for finding multiple collection items by primary key.
Private Instance Methods
build_query()
click to toggle source
# File lib/cuprum/collections/basic/commands/find_many.rb, line 44 def build_query Cuprum::Collections::Basic::Query.new(data) end
items_with_primary_keys(items:)
click to toggle source
# File lib/cuprum/collections/basic/commands/find_many.rb, line 48 def items_with_primary_keys(items:) # :nocov: items.map { |item| [item[primary_key_name.to_s], item] }.to_h # :nocov: end
process( primary_keys:, allow_partial: false, envelope: false, scope: nil )
click to toggle source
Calls superclass method
Cuprum::Collections::Commands::AbstractFindMany#process
# File lib/cuprum/collections/basic/commands/find_many.rb, line 54 def process( primary_keys:, allow_partial: false, envelope: false, scope: nil ) step { validate_primary_keys(primary_keys) } super end