Skip to content

Commit 9b8f9cd

Browse files
authored
Merge pull request #469 from ambethia/grosser/hash
add back hash access for reply
2 parents 1f1099d + 735ff51 commit 9b8f9cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/recaptcha/reply.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ def initialize(raw_reply, enterprise:)
77
@enterprise = enterprise
88
end
99

10+
def [](key)
11+
@raw_reply[key.to_s]
12+
end
13+
1014
def success?(options = {})
1115
success.to_s == 'true' &&
1216
hostname_valid?(options[:hostname]) &&

0 commit comments

Comments
 (0)