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



1509
1510
1511
# File 'lib/phraseapp-ruby.rb', line 1509

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1513
1514
1515
# File 'lib/phraseapp-ruby.rb', line 1513

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



1517
1518
1519
# File 'lib/phraseapp-ruby.rb', line 1517

def role=(val)
  super(val)
end

#validateObject



1521
1522
1523
1524
1525
1526
# File 'lib/phraseapp-ruby.rb', line 1521

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