Class: PhraseApp::RequestParams::TranslationUpdateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::TranslationUpdateParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
TranslationUpdateParams
Parameters:
- content
-
Translation content
- excluded
-
Indicates whether translation is excluded.
- plural_suffix
-
Plural suffix. Can be one of: zero, one, two, few, many, other.
- unverified
-
Indicates whether translation is unverified.
Instance Method Summary collapse
- #content=(val) ⇒ Object
- #excluded=(val) ⇒ Object
- #plural_suffix=(val) ⇒ Object
- #unverified=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#content=(val) ⇒ Object
1715 1716 1717 |
# File 'lib/phraseapp-ruby.rb', line 1715 def content=(val) super(val) end |
#excluded=(val) ⇒ Object
1719 1720 1721 1722 1723 1724 1725 1726 1727 |
# File 'lib/phraseapp-ruby.rb', line 1719 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) ⇒ Object
1729 1730 1731 |
# File 'lib/phraseapp-ruby.rb', line 1729 def plural_suffix=(val) super(val) end |
#unverified=(val) ⇒ Object
1733 1734 1735 1736 1737 1738 1739 1740 1741 |
# File 'lib/phraseapp-ruby.rb', line 1733 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 ⇒ Object
1743 1744 1745 1746 1747 1748 |
# File 'lib/phraseapp-ruby.rb', line 1743 def validate if content == nil || content == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"content\" of \"translation_updateParams\" not set") end end |