Sha256: 42280620add1129993c314d1426c91d5b7126de547ad26acfe4dcabe108c4326

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

module Gemgento
  module MagentoAdapter
    extend ActiveSupport::Concern

    class_methods do
      def filters(attributes)
        filters = { filter: { item: [] } }

        attributes.each do |key, val|
          filters[:filter][:item] << { key: key, value: val }
        end

        return filters
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/adapters/gemgento/magento_adapter.rb