Class: PhraseApp::RequestParams::InvitationCreateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::InvitationCreateParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
InvitationCreateParams
Parameters:
-
The email of the invited user. The
emailcan not be updated once created. Create a new invitation for each unique email. - locale_ids
-
List of locale ids the invited user has access to.
- project_ids
-
List of project ids the invited user has access to.
- role
-
Invitiation role, can be any of Manager, Developer, Translator.
Instance Method Summary collapse
- #email=(val) ⇒ Object
- #locale_ids=(val) ⇒ Object
- #project_ids=(val) ⇒ Object
- #role=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#email=(val) ⇒ Object
1211 1212 1213 |
# File 'lib/phraseapp-ruby.rb', line 1211 def email=(val) super(val) end |
#locale_ids=(val) ⇒ Object
1215 1216 1217 |
# File 'lib/phraseapp-ruby.rb', line 1215 def locale_ids=(val) super(val) end |
#project_ids=(val) ⇒ Object
1219 1220 1221 |
# File 'lib/phraseapp-ruby.rb', line 1219 def project_ids=(val) super(val) end |
#role=(val) ⇒ Object
1223 1224 1225 |
# File 'lib/phraseapp-ruby.rb', line 1223 def role=(val) super(val) end |
#validate ⇒ Object
1227 1228 1229 1230 1231 1232 1233 1234 1235 |
# File 'lib/phraseapp-ruby.rb', line 1227 def validate if email == nil || email == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"email\" of \"invitation_createParams\" not set") end if role == nil || role == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"role\" of \"invitation_createParams\" not set") end end |