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
1620 1621 1622 |
# File 'lib/phraseapp-ruby.rb', line 1620 def email=(val) super(val) end |
#locale_ids=(val) ⇒ Object
1624 1625 1626 |
# File 'lib/phraseapp-ruby.rb', line 1624 def locale_ids=(val) super(val) end |
#project_ids=(val) ⇒ Object
1628 1629 1630 |
# File 'lib/phraseapp-ruby.rb', line 1628 def project_ids=(val) super(val) end |
#role=(val) ⇒ Object
1632 1633 1634 |
# File 'lib/phraseapp-ruby.rb', line 1632 def role=(val) super(val) end |
#validate ⇒ Object
1636 1637 1638 1639 1640 1641 1642 1643 1644 |
# File 'lib/phraseapp-ruby.rb', line 1636 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 |