Class: PhraseApp::RequestParams::KeysTagParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::KeysTagParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
KeysTagParams
Parameters:
- locale_id
-
Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
- 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>. - tags
-
Tag or comma-separated list of tags to add to the matching collection of keys
Instance Method Summary collapse
Instance Method Details
#locale_id=(val) ⇒ Object
1128 1129 1130 |
# File 'lib/phraseapp-ruby.rb', line 1128 def locale_id=(val) self.locale_id = val end |
#q=(val) ⇒ Object
1132 1133 1134 |
# File 'lib/phraseapp-ruby.rb', line 1132 def q=(val) self.q = val end |
#tags=(val) ⇒ Object
1136 1137 1138 |
# File 'lib/phraseapp-ruby.rb', line 1136 def (val) self. = val end |
#validate ⇒ Object
1140 1141 1142 1143 1144 |
# File 'lib/phraseapp-ruby.rb', line 1140 def validate if self. == nil || self. == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"tags\" of \"keys_tagParams\" not set") end end |