Class: PhraseApp::RequestParams::GlossaryTermTranslationParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::GlossaryTermTranslationParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
GlossaryTermTranslationParams
Parameters:
- content
-
The content of the translation
- locale_code
-
Identifies the language for this translation
Instance Method Summary collapse
Instance Method Details
#content=(val) ⇒ Object
511 512 513 |
# File 'lib/phraseapp-ruby.rb', line 511 def content=(val) super(val) end |
#locale_code=(val) ⇒ Object
515 516 517 |
# File 'lib/phraseapp-ruby.rb', line 515 def locale_code=(val) super(val) end |
#validate ⇒ Object
519 520 521 522 523 524 |
# File 'lib/phraseapp-ruby.rb', line 519 def validate if locale_code == nil || locale_code == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"locale_code\" of \"GlossaryTermTranslationParams\" not set") end end |