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



1141
1142
1143
# File 'lib/fizzy/generated/types.rb', line 1141

def created_at
  @created_at
end

#eventObject (readonly)

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



1141
1142
1143
# File 'lib/fizzy/generated/types.rb', line 1141

def event
  @event
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1141
1142
1143
# File 'lib/fizzy/generated/types.rb', line 1141

def id
  @id
end

#requestObject (readonly)

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



1141
1142
1143
# File 'lib/fizzy/generated/types.rb', line 1141

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



1141
1142
1143
# File 'lib/fizzy/generated/types.rb', line 1141

def response
  @response
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



1141
1142
1143
# File 'lib/fizzy/generated/types.rb', line 1141

def state
  @state
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



1141
1142
1143
# File 'lib/fizzy/generated/types.rb', line 1141

def updated_at
  @updated_at
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
# File 'lib/fizzy/generated/types.rb', line 1143

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"],
    response: data["response"],
    event: data["event"]
  )
end