Class: PhraseApp::RequestParams::TranslationUpdateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::TranslationUpdateParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
TranslationUpdateParams
Parameters:
- content
-
content
- excluded
-
excluded
- plural_suffix
-
plural_suffix
- unverified
-
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
1258 1259 1260 |
# File 'lib/phraseapp-ruby.rb', line 1258 def content=(val) self.content = val end |
#excluded=(val) ⇒ Object
1262 1263 1264 1265 1266 1267 1268 1269 1270 |
# File 'lib/phraseapp-ruby.rb', line 1262 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
1272 1273 1274 |
# File 'lib/phraseapp-ruby.rb', line 1272 def plural_suffix=(val) self.plural_suffix = val end |
#unverified=(val) ⇒ Object
1276 1277 1278 1279 1280 1281 1282 1283 1284 |
# File 'lib/phraseapp-ruby.rb', line 1276 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
1286 1287 1288 1289 1290 |
# File 'lib/phraseapp-ruby.rb', line 1286 def validate if self.content == nil || self.content == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"content\" of \"translation_updateParams\" not set") end end |