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
702 703 704 |
# File 'lib/phraseapp-ruby.rb', line 702 def content=(val) super(val) end |
#locale_code=(val) ⇒ Object
706 707 708 |
# File 'lib/phraseapp-ruby.rb', line 706 def locale_code=(val) super(val) end |
#validate ⇒ Object
710 711 712 713 714 715 |
# File 'lib/phraseapp-ruby.rb', line 710 def validate if locale_code == nil || locale_code == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"locale_code\" of \"GlossaryTermTranslationParams\" not set") end end |