Class: PhraseApp::RequestParams::InvitationCreateParams

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

Overview

InvitationCreateParams

Parameters:

email

The email of the invited user. The email can not be updated once created. Create a new invitation for each unique email.

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

#email=(val) ⇒ Object



1343
1344
1345
# File 'lib/phraseapp-ruby.rb', line 1343

def email=(val)
  super(val)
end

#locale_ids=(val) ⇒ Object



1347
1348
1349
# File 'lib/phraseapp-ruby.rb', line 1347

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1351
1352
1353
# File 'lib/phraseapp-ruby.rb', line 1351

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



1355
1356
1357
# File 'lib/phraseapp-ruby.rb', line 1355

def role=(val)
  super(val)
end

#validateObject



1359
1360
1361
1362
1363
1364
1365
1366
1367
# File 'lib/phraseapp-ruby.rb', line 1359

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