Class: PhraseApp::RequestParams::KeysUntagParams

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/phraseapp-ruby.rb

Overview

KeysUntagParams

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



1290
1291
1292
# File 'lib/phraseapp-ruby.rb', line 1290

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

#q=(val) ⇒ Object



1294
1295
1296
# File 'lib/phraseapp-ruby.rb', line 1294

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

#tags=(val) ⇒ Object



1298
1299
1300
# File 'lib/phraseapp-ruby.rb', line 1298

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

#to_hObject



1308
1309
1310
# File 'lib/phraseapp-ruby.rb', line 1308

def to_h
  @table.dup
end

#validateObject



1302
1303
1304
1305
1306
# File 'lib/phraseapp-ruby.rb', line 1302

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