Class: PhraseApp::TranslationUpdateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::TranslationUpdateParams
- Defined in:
- lib/phraseapp-ruby.rb
Instance Method Summary collapse
-
#content=(val) ⇒ Object
:content, :excluded, :plural_suffix, :unverified,.
- #excluded=(val) ⇒ Object
- #plural_suffix=(val) ⇒ Object
- #unverified=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#content=(val) ⇒ Object
:content, :excluded, :plural_suffix, :unverified,
990 991 992 |
# File 'lib/phraseapp-ruby.rb', line 990 def content=(val) self.content = val end |
#excluded=(val) ⇒ Object
994 995 996 997 998 999 1000 1001 1002 |
# File 'lib/phraseapp-ruby.rb', line 994 def excluded=(val) if val == "true" self.excluded = true elsif val == "false" #ignore self.excluded = b else PhraseApp::ParamsValidationError.new("invalid value #{val}") end end |
#plural_suffix=(val) ⇒ Object
1004 1005 1006 |
# File 'lib/phraseapp-ruby.rb', line 1004 def plural_suffix=(val) self.plural_suffix = val end |
#unverified=(val) ⇒ Object
1008 1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'lib/phraseapp-ruby.rb', line 1008 def unverified=(val) if val == "true" self.unverified = true elsif val == "false" #ignore self.unverified = b else PhraseApp::ParamsValidationError.new("invalid value #{val}") end end |
#validate ⇒ Object
1018 1019 1020 1021 1022 |
# File 'lib/phraseapp-ruby.rb', line 1018 def validate if self.content == nil || self.content == "" raise PhraseApp::ParamsValidationError.new("Required parameter \"content\" of \"translation_updateParams\" not set") end end |