Class: Lookbook::SearchParamBuilder
- Defined in:
- lib/lookbook/services/urls/search_param_builder.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(data) ⇒ SearchParamBuilder
constructor
A new instance of SearchParamBuilder.
Methods inherited from Service
Constructor Details
#initialize(data) ⇒ SearchParamBuilder
Returns a new instance of SearchParamBuilder.
5 6 7 |
# File 'lib/lookbook/services/urls/search_param_builder.rb', line 5 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/lookbook/services/urls/search_param_builder.rb', line 3 def data @data end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'lib/lookbook/services/urls/search_param_builder.rb', line 9 def call data.map { |k, v| "#{k}:#{v}" }.join("|") end |