Class: Fizzy::Types::WebhookDeliveryEventEventable

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1193
1194
1195
# File 'lib/fizzy/generated/types.rb', line 1193

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



1193
1194
1195
# File 'lib/fizzy/generated/types.rb', line 1193

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



1193
1194
1195
# File 'lib/fizzy/generated/types.rb', line 1193

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1195
1196
1197
1198
1199
1200
1201
# File 'lib/fizzy/generated/types.rb', line 1195

def self.from_json(data)
  new(
    type: data["type"],
    id: data["id"],
    url: data["url"]
  )
end