Class: Fizzy::Types::WebhookDelivery

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



1152
1153
1154
# File 'lib/fizzy/generated/types.rb', line 1152

def created_at
  @created_at
end

#eventObject (readonly)

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



1152
1153
1154
# File 'lib/fizzy/generated/types.rb', line 1152

def event
  @event
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1152
1153
1154
# File 'lib/fizzy/generated/types.rb', line 1152

def id
  @id
end

#requestObject (readonly)

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



1152
1153
1154
# File 'lib/fizzy/generated/types.rb', line 1152

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



1152
1153
1154
# File 'lib/fizzy/generated/types.rb', line 1152

def response
  @response
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



1152
1153
1154
# File 'lib/fizzy/generated/types.rb', line 1152

def state
  @state
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



1152
1153
1154
# File 'lib/fizzy/generated/types.rb', line 1152

def updated_at
  @updated_at
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
# File 'lib/fizzy/generated/types.rb', line 1154

def self.from_json(data)
  new(
    id: data["id"],
    state: data["state"],
    created_at: data["created_at"],
    updated_at: data["updated_at"],
    request: data["request"] && WebhookDeliveryRequest.from_json(data["request"]),
    response: data["response"] && WebhookDeliveryResponse.from_json(data["response"]),
    event: data["event"] && WebhookDeliveryEvent.from_json(data["event"])
  )
end