Sha256: b10614ecc432e23cb2aaa0940d7b0a1af7b4c30078b39e328b98e765233a2059

Contents?: true

Size: 240 Bytes

Versions: 28

Compression:

Stored size: 240 Bytes

Contents

require "cgi"

module Lookbook
  class SearchParamParser < Service
    attr_reader :str

    def initialize(str)
      @str = str.to_s.strip
    end

    def call
      json = CGI.unescape(str)
      JsonParser.call(json)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lookbook-2.3.4 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.3.3 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.3.2 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.3.0 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.2.2 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.2.1 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.2.0 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.1.1 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.1.0 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.5 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.4 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.3 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.2 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.1 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.rc.3 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.rc.2 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.rc.1 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.9 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.8 lib/lookbook/services/urls/search_param_parser.rb