Class: PhraseApp::RequestParams::KeysSearchParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::KeysSearchParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
KeysSearchParams
Parameters:
- locale_id
-
Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
- order
-
Order direction. Can be one of: asc, desc.
- q
-
Specify a search term query including wildcard or exact matching. It will search the key metadata for matching results. Searched fields include key name, description, tags, translations.
Also supports the following qualifiers in the query:
<ul> <li>name:key_namefor text queries on key names</li> <li>translated:{true|false}for translation status (also requireslocale_idto be specified)</li> <li>updated_at{>=|<=}2013-02-21T00:00:00Zfor date range queries</li> </ul> Please note that the argument is named--querywhen using the <a href=“phraseapp.com/cli” target=“_blank”>PhraseApp Client</a>. <br /><br /> Find more examples <a href=“/api/v2/general/examples/”>here</a>. - sort
-
Sort by field. Can be one of: name, created_at, updated_at.
Instance Method Summary collapse
- #locale_id=(val) ⇒ Object
- #order=(val) ⇒ Object
- #q=(val) ⇒ Object
- #sort=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#locale_id=(val) ⇒ Object
1095 1096 1097 |
# File 'lib/phraseapp-ruby.rb', line 1095 def locale_id=(val) self.locale_id = val end |
#order=(val) ⇒ Object
1099 1100 1101 |
# File 'lib/phraseapp-ruby.rb', line 1099 def order=(val) self.order = val end |
#q=(val) ⇒ Object
1103 1104 1105 |
# File 'lib/phraseapp-ruby.rb', line 1103 def q=(val) self.q = val end |
#sort=(val) ⇒ Object
1107 1108 1109 |
# File 'lib/phraseapp-ruby.rb', line 1107 def sort=(val) self.sort = val end |
#validate ⇒ Object
1111 1112 1113 |
# File 'lib/phraseapp-ruby.rb', line 1111 def validate end |