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



1182
1183
1184
# File 'lib/fizzy/generated/types.rb', line 1182

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1182
1183
1184
# File 'lib/fizzy/generated/types.rb', line 1182

def name
  @name
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1184
1185
1186
1187
1188
1189
# File 'lib/fizzy/generated/types.rb', line 1184

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