class RingCaptcha::RingCaptchaVerification

Constants

PUBLIC_METHODS

Public Class Methods

new(json) click to toggle source
# File lib/ringcaptcha.rb, line 17
def initialize(json)
  @json = json
end

Public Instance Methods

as_json(options={}) click to toggle source
# File lib/ringcaptcha.rb, line 25
def as_json(options={})
  @json.slice(*PUBLIC_METHODS.map(&:to_s))
end
valid?() click to toggle source
# File lib/ringcaptcha.rb, line 21
def valid?
  @status == "SUCCESS"
end