Class: AppleID::EventToken::Event

Inherits:
OpenIDConnect::ConnectObject
  • Object
show all
Defined in:
lib/apple_id/event_token/event.rb

Defined Under Namespace

Modules: Type

Class Method Summary collapse

Instance Method Summary collapse

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?

Returns:

  • (Boolean)


24
25
26
# File 'lib/apple_id/event_token/event.rb', line 24

def 
  type == Type::ACCOUNT_DELETED
end

Returns:

  • (Boolean)


20
21
22
# File 'lib/apple_id/event_token/event.rb', line 20

def consent_revoked?
  type == Type::CONSENT_REVOKED
end

#email_disabled?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/apple_id/event_token/event.rb', line 12

def email_enabled?
  type == Type::EMAIL_ENABLED
end