Sha256: e43b9916ff5f17456af92693c34bf5ef226d76cae227bfc7e5816f05897b7c45

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mc_delta-0.4.0 lib/source/data_construct_pattern/data_construct_pattarn.rb
mc_delta-0.3.0 lib/source/data_construct_pattern/data_construct_pattarn.rb
mc_delta-0.2.0 lib/source/data_construct_pattern/data_construct_pattarn.rb
mc_delta-0.1.0 lib/source/data_construct_pattern/data_construct_pattarn.rb
model_gem-0.2.0 lib/model_gem_source/data_construct_pattern/data_construct_pattarn.rb
model_gem-0.1.9 lib/model_gem_source/data_construct_pattern/data_construct_pattarn.rb
model_gem-0.1.8 lib/model_gem_source/data_construct_pattern/data_construct_pattarn.rb
model_gem-0.1.7 ./model_gem_source/data_construct_pattern/data_construct_pattarn.rb
model_gem-0.1.6 ./model_gem_source/data_construct_pattern/data_construct_pattarn.rb