Class: Lookbook::SearchParamParser
- Defined in:
- lib/lookbook/services/urls/search_param_parser.rb
Instance Attribute Summary collapse
- #str ⇒ Object readonly
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(str) ⇒ SearchParamParser
constructor
A new instance of SearchParamParser.
Methods inherited from Service
Constructor Details
#initialize(str) ⇒ SearchParamParser
Returns a new instance of SearchParamParser.
7 8 9 |
# File 'lib/lookbook/services/urls/search_param_parser.rb', line 7 def initialize(str) @str = str.to_s.strip end |
Instance Attribute Details
#str ⇒ Object (readonly)
5 6 7 |
# File 'lib/lookbook/services/urls/search_param_parser.rb', line 5 def str @str end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/lookbook/services/urls/search_param_parser.rb', line 11 def call json = CGI.unescape(str) JsonParser.call(json) end |