Sha256: 205444146d04839851da758fae51450dae175c60be8a51ecf50c7a8fa6ca485d
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
module RTurk require 'rturk/logger' SANDBOX = 'http://mechanicalturk.sandbox.amazonaws.com/' PRODUCTION = 'http://mechanicalturk.amazonaws.com/' class << self attr_reader :access_key, :secret_key, :host def setup(access_key, secret_key, opts ={}) @access_key = access_key @secret_key = secret_key @host = opts[:sandbox] ? SANDBOX : PRODUCTION end def sandbox? @host == SANDBOX end def logger RTurk::Logger.logger end end end require 'rturk/utilities' require 'rturk/xml_utilities' require 'rturk/requester' require 'rturk/response' Dir.glob(File.join(File.dirname(__FILE__), 'rturk', 'responses', '*.rb')).each {|f| require f } require 'rturk/operation' Dir.glob(File.join(File.dirname(__FILE__), 'rturk', 'operations', '*.rb')).each {|f| require f } Dir.glob(File.join(File.dirname(__FILE__), 'rturk', 'builders', '*.rb')).each {|f| require f } Dir.glob(File.join(File.dirname(__FILE__), 'rturk', 'adapters', '*.rb')).each {|f| require f } Dir.glob(File.join(File.dirname(__FILE__), 'rturk', 'parsers', '*.rb')).each {|f| require f } require 'rturk/errors'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rturk-2.0.2 | lib/rturk.rb |