Method: Hanami::Model::Adapters::Rethinkdb::Command#initialize

Defined in:
lib/hanami/model/adapters/rethinkdb/command.rb

#initialize(query) ⇒ Command

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize a command

Parameters:

Since:

  • 0.1.0



18
19
20
# File 'lib/hanami/model/adapters/rethinkdb/command.rb', line 18

def initialize(query)
  @collection = query.scoped
end