class Authmac::ValidationResult

Public Class Methods

new(options = {}) click to toggle source
# File lib/authmac.rb, line 9
def initialize(options = {})
  @hmac = options.fetch(:hmac)
  @timestamp = options.fetch(:timestamp)
end

Public Instance Methods

failure?() click to toggle source
# File lib/authmac.rb, line 18
def failure?
  !success?
end
hmac_failure?() click to toggle source
# File lib/authmac.rb, line 22
def hmac_failure?
  !@hmac
end
success?() click to toggle source
# File lib/authmac.rb, line 14
def success?
  @hmac and @timestamp
end
timestamp_failure?() click to toggle source
# File lib/authmac.rb, line 26
def timestamp_failure?
  !@timestamp
end