Class: Checkoff::Internal::SearchUrl::SimpleParam::SearchedType

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

Overview

Handle 'searched_type' 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>)


198
199
200
201
202
# File 'lib/checkoff/internal/search_url/simple_param_converter.rb', line 198

def convert
  return [] if single_value == 'task'

  raise "Teach me how to handle #{key} = #{values}"
end