Class: PhraseApp::RequestParams::InvitationUpdateParams

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/phraseapp-ruby.rb

Overview

InvitationUpdateParams

Parameters:

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

Instance Method Details

#locale_ids=(val) ⇒ Object



1397
1398
1399
# File 'lib/phraseapp-ruby.rb', line 1397

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1401
1402
1403
# File 'lib/phraseapp-ruby.rb', line 1401

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



1405
1406
1407
# File 'lib/phraseapp-ruby.rb', line 1405

def role=(val)
  super(val)
end

#validateObject



1409
1410
1411
1412
1413
1414
# File 'lib/phraseapp-ruby.rb', line 1409

def validate
  
  if role == nil || role == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"role\" of \"invitation_updateParams\" not set")
  end
end