class PhraseApp::RequestParams::JobParams

JobParams

Parameters:

branch

specify the branch to use

briefing

Briefing for the translators

due_date

Date the job should be finished

name

Job name

tags

tags of keys that should be included within the job

translation_key_ids

ids of keys that should be included within the job

Public Instance Methods

branch=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 824
def branch=(val)
  super(val)
end
briefing=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 828
def briefing=(val)
  super(val)
end
due_date=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 832
def due_date=(val)
  super(DateTime.parse(val))
end
name=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 836
def name=(val)
  super(val)
end
tags=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 840
def tags=(val)
  super(val.split(','))
end
translation_key_ids=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 844
def translation_key_ids=(val)
  super(val.split(','))
end
validate() click to toggle source
# File lib/phraseapp-ruby.rb, line 848
def validate
  
  if name == nil || name == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"name\" of \"JobParams\" not set")
  end
  if tags == nil
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"tags\" of \"JobParams\" not set")
  end
  if translation_key_ids == nil
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"translation_key_ids\" of \"JobParams\" not set")
  end
end