Class: PhraseApp::RequestParams::InvitationUpdateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::InvitationUpdateParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
InvitationUpdateParams
Parameters:
- locale_ids
-
List of locale ids the invited user has access to
- permissions
-
Additional permissions depending on invitation role.
- 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
- #locale_ids=(val) ⇒ Object
- #permissions=(val) ⇒ Object
- #project_ids=(val) ⇒ Object
- #role=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#locale_ids=(val) ⇒ Object
2048 2049 2050 |
# File 'lib/phraseapp-ruby.rb', line 2048 def locale_ids=(val) super(val) end |
#permissions=(val) ⇒ Object
2052 2053 2054 |
# File 'lib/phraseapp-ruby.rb', line 2052 def (val) super(JSON.load(val)) end |
#project_ids=(val) ⇒ Object
2056 2057 2058 |
# File 'lib/phraseapp-ruby.rb', line 2056 def project_ids=(val) super(val) end |
#role=(val) ⇒ Object
2060 2061 2062 |
# File 'lib/phraseapp-ruby.rb', line 2060 def role=(val) super(val) end |
#validate ⇒ Object
2064 2065 2066 2067 2068 2069 |
# File 'lib/phraseapp-ruby.rb', line 2064 def validate if role == nil || role == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"role\" of \"invitation_updateParams\" not set") end end |