Sha256: 2f209a368e03ba5d96f98cb02737f714f4b16c191f7589c97ee7d1eea4266336

Contents?: true

Size: 300 Bytes

Versions: 3

Compression:

Stored size: 300 Bytes

Contents

module SecretSantaPicker
  class Person
    attr_accessor :name, :email

    def self.generate(csv_array:)
      csv_array.map do |name, email|
        Person.new(name: name, email: email)
      end
    end

    def initialize(name:, email:)
      @name = name
      @email = email
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
secret_santa_picker-0.2.1 lib/secret_santa_picker/person.rb
secret_santa_picker-0.2.0 lib/secret_santa_picker/person.rb
secret_santa_picker-0.1.0 lib/secret_santa_picker/person.rb