Sha256: c1c58651b5e55b790fb2788af273196eb468617c94f025e4b3f682c8759805e0

Contents?: true

Size: 740 Bytes

Versions: 3

Compression:

Stored size: 740 Bytes

Contents

module ShnaiderCode
    class DataConstructPattern 
        def execute(values, attrs)
            raise 'Метод не реализован'
        end
    end

    class DefaultDataConstructPattern 
        def execute(values, attrs)
            (0...values.size).map { |item_index|
                [
                    values[item_index].id,
                    values[item_index].lastname,
                    values[item_index].firstname,
                    values[item_index].patronymic,
                    values[item_index].git,
                    values[item_index].telegram,
                    values[item_index].phone,
                    values[item_index].email
                ]
            }
        end
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shnaider_code-2.0.4 lib/source/data_construct_pattern/data_construct_pattarn.rb
shnaider_code-2.0.3 lib/source/data_construct_pattern/data_construct_pattarn.rb
shnaider_code-2.0.2 lib/source/data_construct_pattern/data_construct_pattarn.rb