Class: PhraseApp::RequestParams::JobKeysCreateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::JobKeysCreateParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
JobKeysCreateParams
Parameters:
- branch
-
specify the branch to use
- translation_key_ids
-
ids of keys that should added to the job
Instance Method Summary collapse
Instance Method Details
#branch=(val) ⇒ Object
2122 2123 2124 |
# File 'lib/phraseapp-ruby.rb', line 2122 def branch=(val) super(val) end |
#translation_key_ids=(val) ⇒ Object
2126 2127 2128 |
# File 'lib/phraseapp-ruby.rb', line 2126 def translation_key_ids=(val) super(val.split(',')) end |
#validate ⇒ Object
2130 2131 2132 2133 2134 2135 |
# File 'lib/phraseapp-ruby.rb', line 2130 def validate if translation_key_ids == nil raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"translation_key_ids\" of \"job_keys_createParams\" not set") end end |