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



1168
1169
1170
# File 'lib/fizzy/generated/types.rb', line 1168

def action
  @action
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



1168
1169
1170
# File 'lib/fizzy/generated/types.rb', line 1168

def created_at
  @created_at
end

#creatorObject (readonly)

Returns the value of attribute creator

Returns:

  • (Object)

    the current value of creator



1168
1169
1170
# File 'lib/fizzy/generated/types.rb', line 1168

def creator
  @creator
end

#eventableObject (readonly)

Returns the value of attribute eventable

Returns:

  • (Object)

    the current value of eventable



1168
1169
1170
# File 'lib/fizzy/generated/types.rb', line 1168

def eventable
  @eventable
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1168
1169
1170
# File 'lib/fizzy/generated/types.rb', line 1168

def id
  @id
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



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

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