Class: CachedMLEKId
- Inherits:
-
Object
- Object
- CachedMLEKId
- Defined in:
- lib/AuthenticationSDK/util/CachedMLEKId.rb
Overview
Cache value object to store MLE KID data
Instance Attribute Summary collapse
-
#kid ⇒ Object
Returns the value of attribute kid.
-
#last_modified_timestamp ⇒ Object
Returns the value of attribute last_modified_timestamp.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(kid = nil, last_modified_timestamp = nil) ⇒ CachedMLEKId
constructor
A new instance of CachedMLEKId.
- #to_s ⇒ Object
Constructor Details
#initialize(kid = nil, last_modified_timestamp = nil) ⇒ CachedMLEKId
Returns a new instance of CachedMLEKId.
5 6 7 8 |
# File 'lib/AuthenticationSDK/util/CachedMLEKId.rb', line 5 def initialize(kid = nil, = nil) @kid = kid @last_modified_timestamp = end |
Instance Attribute Details
#kid ⇒ Object
Returns the value of attribute kid.
3 4 5 |
# File 'lib/AuthenticationSDK/util/CachedMLEKId.rb', line 3 def kid @kid end |
#last_modified_timestamp ⇒ Object
Returns the value of attribute last_modified_timestamp.
3 4 5 |
# File 'lib/AuthenticationSDK/util/CachedMLEKId.rb', line 3 def @last_modified_timestamp end |
Instance Method Details
#empty? ⇒ Boolean
14 15 16 |
# File 'lib/AuthenticationSDK/util/CachedMLEKId.rb', line 14 def empty? @kid.nil? && @last_modified_timestamp.nil? end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/AuthenticationSDK/util/CachedMLEKId.rb', line 10 def to_s "CachedMLEKId(kid: #{@kid ? 'present' : 'nil'}, last_modified_timestamp: #{@last_modified_timestamp})" end |