Class: SimpleAWS::MechanicalTurk
- Inherits:
-
API
- Object
- API
- SimpleAWS::MechanicalTurk
- 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, #region, #secret_key, #version
Instance Method Summary (collapse)
-
- (MechanicalTurk) initialize(key, secret, sandbox = false)
constructor
A new instance of MechanicalTurk.
Methods included from CallTypes::ActionParam
Methods inherited from API
default_region, endpoint, #uri, use_https, version
Constructor Details
- (MechanicalTurk) initialize(key, secret, sandbox = false)
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