Class: Checkoff::Internal::SearchUrl::SimpleParam::PortfoliosIds

Inherits:
SimpleParam
  • Object
show all
Defined in:
lib/checkoff/internal/search_url/simple_param_converter.rb,
sig/checkoff.rbs

Overview

Handle 'portfolios.ids' search url param

Instance Attribute Summary

Attributes inherited from SimpleParam

#key, #values

Instance Method Summary collapse

Methods inherited from SimpleParam

#convert_from_projects_and_sections, #initialize, #parse_projects_and_sections, #single_value

Constructor Details

This class inherits a constructor from Checkoff::Internal::SearchUrl::SimpleParam::SimpleParam

Instance Method Details

#convertArray<String>

Returns:

  • (Array<String>)


77
78
79
# File 'lib/checkoff/internal/search_url/simple_param_converter.rb', line 77

def convert
  { 'portfolios.any' => single_value.split('~').join(',') }.to_a.flatten
end