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



1515
1516
1517
# File 'lib/phraseapp-ruby.rb', line 1515

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1519
1520
1521
# File 'lib/phraseapp-ruby.rb', line 1519

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



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

def role=(val)
  super(val)
end

#validateObject



1527
1528
1529
1530
1531
1532
# File 'lib/phraseapp-ruby.rb', line 1527

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