Class: RTurk::SetHITTypeNotification

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

Constant Summary

PARAMZ =
[:hit_type_id, :notification, :active]

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 Method Details

- (Object) to_params



8
9
10
11
12
# File 'lib/rturk/operations/set_hit_type_notification.rb', line 8

def to_params
  { :HITTypeId => self.hit_type_id,
    :Active => self.active }.
    merge(self.notification.to_param_hash)
end