Class: ProveUru::AuthenticationResult

Inherits:
Object
  • Object
show all
Defined in:
lib/prove_uru/authentication_result.rb

Constant Summary collapse

ATTRIBUTES =
[
  :authentication_id, :timestamp, :no_retry, :user_breakpoint, :authentication_count,
  :profile_id, :profile_name, :profile_version, :profile_revision, :profile_state,
  :result_codes, :score, :band_text
].freeze

Instance Method Summary collapse

Constructor Details

#initialize(args = nil) ⇒ AuthenticationResult

Returns a new instance of AuthenticationResult.



13
14
15
16
17
18
19
# File 'lib/prove_uru/authentication_result.rb', line 13

def initialize(args = nil)
  ATTRIBUTES.each do |a|
    if (args.key?(a))
      instance_variable_set("@#{a}", args[a])
    end
  end
end

Instance Method Details

#inspectObject



21
22
23
24
25
26
# File 'lib/prove_uru/authentication_result.rb', line 21

def inspect
  ATTRIBUTES.inject({ }) do |h, attr|
    h[attr] = instance_variable_get("@#{attr}")
    h
  end
end