Class: PhraseApp::RequestParams::TranslationUpdateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::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,
1050 1051 1052 |
# File 'lib/phraseapp-ruby.rb', line 1050 def content=(val) self.content = val end |
#excluded=(val) ⇒ Object
1054 1055 1056 1057 1058 1059 1060 1061 1062 |
# File 'lib/phraseapp-ruby.rb', line 1054 def excluded=(val) if val == "true" self.excluded = true elsif val == "false" #ignore self.excluded = b else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end |
#plural_suffix=(val) ⇒ Object
1064 1065 1066 |
# File 'lib/phraseapp-ruby.rb', line 1064 def plural_suffix=(val) self.plural_suffix = val end |
#unverified=(val) ⇒ Object
1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'lib/phraseapp-ruby.rb', line 1068 def unverified=(val) if val == "true" self.unverified = true elsif val == "false" #ignore self.unverified = b else PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}") end end |
#validate ⇒ Object
1078 1079 1080 1081 1082 |
# File 'lib/phraseapp-ruby.rb', line 1078 def validate if self.content == nil || self.content == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"content\" of \"translation_updateParams\" not set") end end |