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



435
436
437
# File 'lib/fizzy/generated/types.rb', line 435

def auth_key
  @auth_key
end

#endpointObject (readonly)

Returns the value of attribute endpoint

Returns:

  • (Object)

    the current value of endpoint



435
436
437
# File 'lib/fizzy/generated/types.rb', line 435

def endpoint
  @endpoint
end

#p256dh_keyObject (readonly)

Returns the value of attribute p256dh_key

Returns:

  • (Object)

    the current value of p256dh_key



435
436
437
# File 'lib/fizzy/generated/types.rb', line 435

def p256dh_key
  @p256dh_key
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



437
438
439
440
441
442
443
# File 'lib/fizzy/generated/types.rb', line 437

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