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



1384
1385
1386
# File 'lib/phraseapp-ruby.rb', line 1384

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1388
1389
1390
# File 'lib/phraseapp-ruby.rb', line 1388

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



1392
1393
1394
# File 'lib/phraseapp-ruby.rb', line 1392

def role=(val)
  super(val)
end

#validateObject



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

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