Class: PhraseApp::RequestParams::KeysTagParams

Inherits:
OpenStruct
  • Object
show all
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

q_description_placeholder

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



1126
1127
1128
# File 'lib/phraseapp-ruby.rb', line 1126

def locale_id=(val)
  self.locale_id = val
end

#q=(val) ⇒ Object



1130
1131
1132
# File 'lib/phraseapp-ruby.rb', line 1130

def q=(val)
  self.q = val
end

#tags=(val) ⇒ Object



1134
1135
1136
# File 'lib/phraseapp-ruby.rb', line 1134

def tags=(val)
  self.tags = val
end

#validateObject



1138
1139
1140
1141
1142
# File 'lib/phraseapp-ruby.rb', line 1138

def validate
  if self.tags == nil || self.tags == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"tags\" of \"keys_tagParams\" not set")
  end
end