class AuthenticationDetails
Attributes
authentication_time_utc[RW]
locations[RW]
second_factor_provider[RW]
second_factor_token_type[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/miiCardConsumers.rb, line 315 def self.from_hash(hash) locations = hash["Locations"] locations_parsed = nil unless (locations.nil? || locations.empty?) locations_parsed = locations.map{|item| GeographicLocation::from_hash(item)} end return AuthenticationDetails.new( (Util::parse_dot_net_json_datetime(hash['AuthenticationTimeUtc']) rescue nil), hash['SecondFactorTokenType'], hash['SecondFactorProvider'], locations_parsed ) end
new(authentication_time_utc, second_factor_token_type, second_factor_provider, locations)
click to toggle source
# File lib/miiCardConsumers.rb, line 308 def initialize(authentication_time_utc, second_factor_token_type, second_factor_provider, locations) @authentication_time_utc = authentication_time_utc @second_factor_token_type = second_factor_token_type @second_factor_provider = second_factor_provider @locations = locations end