class PhraseApp::RequestParams::TranslationParams

TranslationParams

Parameters:

branch

specify the branch to use

content

Translation content

excluded

Indicates whether translation is excluded.

key_id

Key

locale_id

Locale. Can be the name or public id of the locale. Preferred is the public id.

plural_suffix

Plural suffix. Can be one of: zero, one, two, few, many, other. Must be specified if the key associated to the translation is pluralized.

unverified

Indicates whether translation is unverified. Part of the <a href=“help.phraseapp.com/translate-website-and-app-content/verify-and-proofread-translations/verification-and-proofreading” target=“_blank”>Advanced Workflows</a> feature.

Public Instance Methods

branch=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 1556
def branch=(val)
  super(val)
end
content=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 1560
def content=(val)
  super(val)
end
excluded=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 1564
def excluded=(val)
  if val.is_a?(TrueClass)
    super(true)
  elsif val.is_a?(FalseClass)
    return
  else
    PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
  end
end
key_id=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 1574
def key_id=(val)
  super(val)
end
locale_id=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 1578
def locale_id=(val)
  super(val)
end
plural_suffix=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 1582
def plural_suffix=(val)
  super(val)
end
unverified=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 1586
def unverified=(val)
  if val.is_a?(TrueClass)
    super(true)
  elsif val.is_a?(FalseClass)
    return
  else
    PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
  end
end
validate() click to toggle source
# File lib/phraseapp-ruby.rb, line 1596
def validate
  
  if content == nil || content == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"content\" of \"TranslationParams\" not set")
  end
  if key_id == nil
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"key_id\" of \"TranslationParams\" not set")
  end
  if locale_id == nil
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"locale_id\" of \"TranslationParams\" not set")
  end
end