Class: AppleID::EventToken::Event
- Inherits:
-
OpenIDConnect::ConnectObject
- Object
- OpenIDConnect::ConnectObject
- AppleID::EventToken::Event
- Defined in:
- lib/apple_id/event_token/event.rb
Defined Under Namespace
Modules: Type
Class Method Summary collapse
Instance Method Summary collapse
- #account_deleted? ⇒ Boolean (also: #account_delete?)
- #consent_revoked? ⇒ Boolean
- #email_disabled? ⇒ Boolean
- #email_enabled? ⇒ Boolean
Class Method Details
.decode(json_string) ⇒ Object
30 31 32 |
# File 'lib/apple_id/event_token/event.rb', line 30 def decode(json_string) new JSON.parse(json_string).with_indifferent_access end |
Instance Method Details
#account_deleted? ⇒ Boolean Also known as: account_delete?
24 25 26 |
# File 'lib/apple_id/event_token/event.rb', line 24 def account_deleted? type == Type::ACCOUNT_DELETED end |
#consent_revoked? ⇒ Boolean
20 21 22 |
# File 'lib/apple_id/event_token/event.rb', line 20 def type == Type::CONSENT_REVOKED end |
#email_disabled? ⇒ Boolean
16 17 18 |
# File 'lib/apple_id/event_token/event.rb', line 16 def email_disabled? type == Type::EMAIL_DISABLED end |
#email_enabled? ⇒ Boolean
12 13 14 |
# File 'lib/apple_id/event_token/event.rb', line 12 def email_enabled? type == Type::EMAIL_ENABLED end |