class PhraseApp::RequestParams::TranslationUpdateParams
Parameters:¶ ↑
- branch
-
specify the branch to use
- content
-
Translation content
- excluded
-
Indicates whether translation is excluded.
- 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 3048 def branch=(val) super(val) end
content=(val)
click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 3052 def content=(val) super(val) end
excluded=(val)
click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 3056 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
plural_suffix=(val)
click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 3066 def plural_suffix=(val) super(val) end
unverified=(val)
click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 3070 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 3080 def validate if content == nil || content == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"content\" of \"translation_updateParams\" not set") end end