Sha256: a769603f276ec19ca48e5b75d16dddbb35700aa787ca9d81039342bf5e49412f

Contents?: true

Size: 180 Bytes

Versions: 8

Compression:

Stored size: 180 Bytes

Contents

# frozen_string_literal: true

class Company
  def create_employes(people)
    people.map do |person|
      Employe.new(company: self, **person)
    end.select(&:adult?)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arstotzka-1.6.2 spec/support/models/company.rb
arstotzka-1.6.1 spec/support/models/company.rb
arstotzka-1.6.0 spec/support/models/company.rb
arstotzka-1.5.0 spec/support/models/company.rb
arstotzka-1.4.4 spec/support/models/company.rb
arstotzka-1.4.3 spec/support/models/company.rb
arstotzka-1.4.2 spec/support/models/company.rb
arstotzka-1.4.1 spec/support/models/company.rb