Class: Checkoff::Internal::SearchUrl::SimpleParam::Sort
- Inherits:
-
SimpleParam
- Object
- SimpleParam
- Checkoff::Internal::SearchUrl::SimpleParam::Sort
- Defined in:
- lib/checkoff/internal/search_url/simple_param_converter.rb
Overview
Handle ‘sort’ search url param
Instance Method Summary collapse
Methods inherited from SimpleParam
Constructor Details
This class inherits a constructor from Checkoff::Internal::SearchUrl::SimpleParam::SimpleParam
Instance Method Details
#convert ⇒ Array<String>
148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/checkoff/internal/search_url/simple_param_converter.rb', line 148 def convert # https://developers.asana.com/reference/searchtasksforworkspace conversion = { 'last_modified' => 'modified_at', 'due_date' => 'due_date', 'creation_time' => 'created_at', 'completion_time' => 'completed_at', 'likes' => 'likes', } ['sort_by', conversion.fetch(single_value)] end |