Class: Fizzy::Types::WebhookDeliveryEventCreator

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



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



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

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