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



1661
1662
1663
# File 'lib/phraseapp-ruby.rb', line 1661

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1665
1666
1667
# File 'lib/phraseapp-ruby.rb', line 1665

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



1669
1670
1671
# File 'lib/phraseapp-ruby.rb', line 1669

def role=(val)
  super(val)
end

#validateObject



1673
1674
1675
1676
1677
1678
# File 'lib/phraseapp-ruby.rb', line 1673

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