Class: RTurk::ApproveAssignment

Inherits:
Operation show all
Defined in:
lib/rturk/operations/approve_assignment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Operation

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

Constructor Details

This class inherits a constructor from RTurk::Operation

Instance Attribute Details

#assignment_idObject

Returns the value of attribute assignment_id



14
15
16
# File 'lib/rturk/operations/approve_assignment.rb', line 14

def assignment_id
  @assignment_id
end

#feedbackObject

Returns the value of attribute feedback



14
15
16
# File 'lib/rturk/operations/approve_assignment.rb', line 14

def feedback
  @feedback
end

Instance Method Details

#to_paramsObject



17
18
19
20
# File 'lib/rturk/operations/approve_assignment.rb', line 17

def to_params
  {'AssignmentId' => self.assignment_id,
    'RequesterFeedback' => self.feedback}
end