Class: ProveUru::AuthenticationResult
- Inherits:
-
Object
- Object
- ProveUru::AuthenticationResult
- 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
-
#initialize(args = nil) ⇒ AuthenticationResult
constructor
A new instance of AuthenticationResult.
- #inspect ⇒ Object
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
#inspect ⇒ Object
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 |