Method: Satisfactory::Record#and

Defined in:
lib/satisfactory/record.rb

#and(count = nil, downstream_type, **attributes) ⇒ Satisfactory::Record, Satisfactory::Collection

Add a sibling record to the parent record’s build plan. e.g. adding a second user to a project.

Parameters:

  • count (Integer) (defaults to: nil)

    The number of records to create.

  • downstream_type (Symbol)

    The type of record to create.

  • attributes (Hash)

    The attributes to use when creating the record.

Returns:

Since:

  • 0.2.0



83
84
85
# File 'lib/satisfactory/record.rb', line 83

def and(count = nil, downstream_type, **attributes) # rubocop:disable Style/OptionalArguments
  upstream.with(count, downstream_type, force: true, **attributes)
end