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



1254
1255
1256
# File 'lib/phraseapp-ruby.rb', line 1254

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

#q=(val) ⇒ Object



1258
1259
1260
# File 'lib/phraseapp-ruby.rb', line 1258

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

#tags=(val) ⇒ Object



1262
1263
1264
# File 'lib/phraseapp-ruby.rb', line 1262

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

#to_hObject



1272
1273
1274
# File 'lib/phraseapp-ruby.rb', line 1272

def to_h
  @table.dup
end

#validateObject



1266
1267
1268
1269
1270
# File 'lib/phraseapp-ruby.rb', line 1266

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