class Cuprum::Collections::Basic::Commands::FindOne
Command
for finding one collection item by primary key.
Private Instance Methods
build_query()
click to toggle source
# File lib/cuprum/collections/basic/commands/find_one.rb, line 39 def build_query Cuprum::Collections::Basic::Query.new(data) end
process(primary_key:, envelope: false, scope: nil)
click to toggle source
Calls superclass method
Cuprum::Collections::Commands::AbstractFindOne#process
# File lib/cuprum/collections/basic/commands/find_one.rb, line 43 def process(primary_key:, envelope: false, scope: nil) step { validate_primary_key(primary_key) } super end