Class: RTurk::UpdateQualificationType

Inherits:
Operation
  • Object
show all
Defined in:
lib/rturk/operations/update_qualification_type.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Operation

#check_params, create, default_params, #default_params, #initialize, #request, require_params, required_params, set_operation

Constructor Details

This class inherits a constructor from RTurk::Operation

Instance Attribute Details

- (Object) answer_key

Returns the value of attribute answer_key



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def answer_key
  @answer_key
end

- (Object) auto_granted

Returns the value of attribute auto_granted



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def auto_granted
  @auto_granted
end

- (Object) auto_granted_value

Returns the value of attribute auto_granted_value



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def auto_granted_value
  @auto_granted_value
end

- (Object) description

Returns the value of attribute description



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def description
  @description
end

- (Object) keywords

Returns the value of attribute keywords



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def keywords
  @keywords
end

- (Object) name

Returns the value of attribute name



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def name
  @name
end

- (Object) qualification_type_id

Returns the value of attribute qualification_type_id



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def qualification_type_id
  @qualification_type_id
end

- (Object) retry_delay_in_seconds

Returns the value of attribute retry_delay_in_seconds



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def retry_delay_in_seconds
  @retry_delay_in_seconds
end

- (Object) status

Returns the value of attribute status



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def status
  @status
end

- (Object) test

Returns the value of attribute test



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def test
  @test
end

- (Object) test_duration_in_seconds

Returns the value of attribute test_duration_in_seconds



5
6
7
# File 'lib/rturk/operations/update_qualification_type.rb', line 5

def test_duration_in_seconds
  @test_duration_in_seconds
end

Instance Method Details

- (Object) parse(xml)



11
12
13
# File 'lib/rturk/operations/update_qualification_type.rb', line 11

def parse(xml)
  RTurk::GetQualificationTypeResponse.new(xml)
end

- (Object) to_params



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/rturk/operations/update_qualification_type.rb', line 15

def to_params
  params = {
    'QualificationTypeId' => qualification_type_id
  }
  params['Name'] = name unless name.nil?
  params['Description'] = description unless description.nil?
  params['Keywords'] = keywords unless keywords.nil?
  params['QualificationTypeStatus'] = status unless status.nil?
  params['AutoGranted'] = auto_granted unless auto_granted.nil?
  params['RetryDelayInSeconds'] = retry_delay_in_seconds unless retry_delay_in_seconds.nil?
  params['Test'] = test unless test.nil?
  params['AnswerKey'] = answer_key unless answer_key.nil?
  params['TestDurationInSeconds'] = test_duration_in_seconds unless test_duration_in_seconds.nil?
  params['AutoGrantedValue'] = auto_granted_value unless auto_granted_value.nil?
  params
end