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



1171
1172
1173
# File 'lib/fizzy/generated/types.rb', line 1171

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1171
1172
1173
# File 'lib/fizzy/generated/types.rb', line 1171

def name
  @name
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1173
1174
1175
1176
1177
1178
# File 'lib/fizzy/generated/types.rb', line 1173

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