Module: Torque::PostgreSQL::InsertAll

Included in:
ActiveRecord::InsertAll
Defined in:
lib/torque/postgresql/insert_all.rb,
sig/torque/postgresql/insert_all.rbs

Defined Under Namespace

Modules: Builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#where ⇒ String, ... (readonly)

Returns the value of attribute where.

Returns:

  • (String, relation, nil)


6
7
8
# File 'lib/torque/postgresql/insert_all.rb', line 6

def where
  @where
end

Instance Method Details

#initialize(*args, where: nil, **xargs) ⇒ InsertAll

Returns a new instance of InsertAll.

Parameters:

  • args (Object)
  • where: (String, relation, nil) (defaults to: nil)
  • xargs (Object)

Returns:

  • (InsertAll) —

    a new instance of InsertAll



8
9
10
11
12
# File 'lib/torque/postgresql/insert_all.rb', line 8

def initialize(*args, where: nil, **xargs)
  super(*args, **xargs)

  @where = where
end