Sha256: 25e4913b3e0fee28a57de728ba1ddb79ac52414cfcd1b5bba11e5a9bc98cf1cf

Contents?: true

Size: 203 Bytes

Versions: 2

Compression:

Stored size: 203 Bytes

Contents

module Lookbook
  class SearchParamBuilder < Service
    attr_reader :data

    def initialize(data)
      @data = data
    end

    def call
      data.map { "#{_1}:#{_2}" }.join("|")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lookbook-1.2.1 lib/lookbook/services/search_param_builder.rb
lookbook-1.2.0 lib/lookbook/services/search_param_builder.rb