Class: SimpleAWS::MechanicalTurk

Inherits:
API
  • Object
show all
Includes:
CallTypes::ActionParam
Defined in:
lib/simple_aws/mechanical_turk.rb

Overview

Amazon's Mechanical Turk

http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/index.html

All requests are POST and always through HTTPS. Instead of regions, this API supports normal and sandbox mode. Use the third parameter of initialize to specify sandbox mode.

For a more fleshed out object API for interacting with MechanicalTurk, you should give rturk a try here: https://github.com/mdp/rturk

Instance Attribute Summary

Attributes inherited from API

#access_key, #debug_to, #region, #secret_key, #version

Instance Method Summary collapse

Methods included from CallTypes::ActionParam

#method_missing

Methods inherited from API

#debug!, default_region, endpoint, #uri, use_https, version

Constructor Details

#initialize(key, secret, sandbox = false) ⇒ MechanicalTurk

Returns a new instance of MechanicalTurk


26
27
28
# File 'lib/simple_aws/mechanical_turk.rb', line 26

def initialize(key, secret, sandbox = false)
  super(key, secret, sandbox ? "sandbox" : nil)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SimpleAWS::CallTypes::ActionParam