Class: InformationCard::IdentityToken
- Inherits:
-
Object
- Object
- InformationCard::IdentityToken
- Defined in:
- lib/information_card/identity_token.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#claims ⇒ Object
readonly
Returns the value of attribute claims.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize ⇒ IdentityToken
constructor
A new instance of IdentityToken.
- #ppid ⇒ Object
- #unique_id ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ IdentityToken
Returns a new instance of IdentityToken.
5 6 7 8 |
# File 'lib/information_card/identity_token.rb', line 5 def initialize @errors = {} @claims = {} end |
Instance Attribute Details
#claims ⇒ Object (readonly)
Returns the value of attribute claims.
3 4 5 |
# File 'lib/information_card/identity_token.rb', line 3 def claims @claims end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/information_card/identity_token.rb', line 3 def errors @errors end |
Instance Method Details
#ppid ⇒ Object
18 19 20 |
# File 'lib/information_card/identity_token.rb', line 18 def ppid nil end |
#unique_id ⇒ Object
14 15 16 |
# File 'lib/information_card/identity_token.rb', line 14 def unique_id nil end |
#valid? ⇒ Boolean
10 11 12 |
# File 'lib/information_card/identity_token.rb', line 10 def valid? @errors.empty? end |