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



1203
1204
1205
# File 'lib/fizzy/generated/types.rb', line 1203

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



1203
1204
1205
# File 'lib/fizzy/generated/types.rb', line 1203

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



1203
1204
1205
# File 'lib/fizzy/generated/types.rb', line 1203

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1205
1206
1207
1208
1209
1210
1211
# File 'lib/fizzy/generated/types.rb', line 1205

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