decaptcher 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/decaptcher.rb +2 -2
- data/lib/decaptcher/version.rb +1 -1
- metadata +1 -1
data/lib/decaptcher.rb
CHANGED
@@ -6,7 +6,7 @@ require "decaptcher/version"
|
|
6
6
|
|
7
7
|
module Decaptcher
|
8
8
|
extend self
|
9
|
-
|
9
|
+
|
10
10
|
Response = Struct.new( :task_id, :code )
|
11
11
|
|
12
12
|
@@api_uri = URI.parse( "http://www.fasttypers.org/imagepost.ashx" )
|
@@ -39,7 +39,7 @@ module Decaptcher
|
|
39
39
|
return Response.new( task_id, response )
|
40
40
|
end
|
41
41
|
|
42
|
-
def refund
|
42
|
+
def refund( task_id )
|
43
43
|
request = Net::HTTP::Post.new( @@api_uri.path )
|
44
44
|
request.set_form_data(
|
45
45
|
"Action" => "refund",
|
data/lib/decaptcher/version.rb
CHANGED