Class: Checkoff::Internal::SearchUrl::SimpleParam::Approval

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

Overview

Handle ‘approval’ search url param

Instance Method Summary collapse

Methods inherited from SimpleParam

#initialize

Constructor Details

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

Instance Method Details

#convertArray<String>



188
189
190
191
192
193
194
# File 'lib/checkoff/internal/search_url/simple_param_converter.rb', line 188

def convert
  return %w[resource_subtype approval] if single_value == 'is_approval'

  return %w[resource_subtype default_task] if single_value == 'is_not_approval'

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