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.0.0.beta.7 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.6 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.5 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.4 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.3 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.2 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.1 lib/lookbook/services/urls/search_param_parser.rb
lookbook-2.0.0.beta.0 lib/lookbook/services/urls/search_param_parser.rb