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



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

def email=(val)
  super(val)
end

#locale_ids=(val) ⇒ Object



1360
1361
1362
# File 'lib/phraseapp-ruby.rb', line 1360

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1364
1365
1366
# File 'lib/phraseapp-ruby.rb', line 1364

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



1368
1369
1370
# File 'lib/phraseapp-ruby.rb', line 1368

def role=(val)
  super(val)
end

#validateObject



1372
1373
1374
1375
1376
1377
1378
1379
1380
# File 'lib/phraseapp-ruby.rb', line 1372

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