Class: Fizzy::Types::CreatePushSubscriptionRequestContent

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auth_keyObject (readonly)

Returns the value of attribute auth_key

Returns:

  • (Object)

    the current value of auth_key



446
447
448
# File 'lib/fizzy/generated/types.rb', line 446

def auth_key
  @auth_key
end

#endpointObject (readonly)

Returns the value of attribute endpoint

Returns:

  • (Object)

    the current value of endpoint



446
447
448
# File 'lib/fizzy/generated/types.rb', line 446

def endpoint
  @endpoint
end

#p256dh_keyObject (readonly)

Returns the value of attribute p256dh_key

Returns:

  • (Object)

    the current value of p256dh_key



446
447
448
# File 'lib/fizzy/generated/types.rb', line 446

def p256dh_key
  @p256dh_key
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



448
449
450
451
452
453
454
# File 'lib/fizzy/generated/types.rb', line 448

def self.from_json(data)
  new(
    endpoint: data["endpoint"],
    p256dh_key: data["p256dh_key"],
    auth_key: data["auth_key"]
  )
end