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



1157
1158
1159
# File 'lib/fizzy/generated/types.rb', line 1157

def action
  @action
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



1157
1158
1159
# File 'lib/fizzy/generated/types.rb', line 1157

def created_at
  @created_at
end

#creatorObject (readonly)

Returns the value of attribute creator

Returns:

  • (Object)

    the current value of creator



1157
1158
1159
# File 'lib/fizzy/generated/types.rb', line 1157

def creator
  @creator
end

#eventableObject (readonly)

Returns the value of attribute eventable

Returns:

  • (Object)

    the current value of eventable



1157
1158
1159
# File 'lib/fizzy/generated/types.rb', line 1157

def eventable
  @eventable
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1157
1158
1159
# File 'lib/fizzy/generated/types.rb', line 1157

def id
  @id
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1159
1160
1161
1162
1163
1164
1165
1166
1167
# File 'lib/fizzy/generated/types.rb', line 1159

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