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
478 479 480 |
# File 'lib/phraseapp-ruby.rb', line 478 def content=(val) super(val) end |
#locale_code=(val) ⇒ Object
482 483 484 |
# File 'lib/phraseapp-ruby.rb', line 482 def locale_code=(val) super(val) end |
#validate ⇒ Object
486 487 488 489 490 491 |
# File 'lib/phraseapp-ruby.rb', line 486 def validate if locale_code == nil || locale_code == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"locale_code\" of \"GlossaryTermTranslationParams\" not set") end end |