Class: Fizzy::Types::WebhookDeliveryEvent

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



1178
1179
1180
# File 'lib/fizzy/generated/types.rb', line 1178

def action
  @action
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



1178
1179
1180
# File 'lib/fizzy/generated/types.rb', line 1178

def created_at
  @created_at
end

#creatorObject (readonly)

Returns the value of attribute creator

Returns:

  • (Object)

    the current value of creator



1178
1179
1180
# File 'lib/fizzy/generated/types.rb', line 1178

def creator
  @creator
end

#eventableObject (readonly)

Returns the value of attribute eventable

Returns:

  • (Object)

    the current value of eventable



1178
1179
1180
# File 'lib/fizzy/generated/types.rb', line 1178

def eventable
  @eventable
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1178
1179
1180
# File 'lib/fizzy/generated/types.rb', line 1178

def id
  @id
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1180
1181
1182
1183
1184
1185
1186
1187
1188
# File 'lib/fizzy/generated/types.rb', line 1180

def self.from_json(data)
  new(
    id: data["id"],
    action: data["action"],
    created_at: data["created_at"],
    creator: data["creator"] && WebhookDeliveryEventCreator.from_json(data["creator"]),
    eventable: data["eventable"] && WebhookDeliveryEventEventable.from_json(data["eventable"])
  )
end