Class: Fizzy::Types::WebhookDelivery
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::WebhookDelivery
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
1162 1163 1164 |
# File 'lib/fizzy/generated/types.rb', line 1162 def created_at @created_at end |
#event ⇒ Object (readonly)
Returns the value of attribute event
1162 1163 1164 |
# File 'lib/fizzy/generated/types.rb', line 1162 def event @event end |
#id ⇒ Object (readonly)
Returns the value of attribute id
1162 1163 1164 |
# File 'lib/fizzy/generated/types.rb', line 1162 def id @id end |
#request ⇒ Object (readonly)
Returns the value of attribute request
1162 1163 1164 |
# File 'lib/fizzy/generated/types.rb', line 1162 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response
1162 1163 1164 |
# File 'lib/fizzy/generated/types.rb', line 1162 def response @response end |
#state ⇒ Object (readonly)
Returns the value of attribute state
1162 1163 1164 |
# File 'lib/fizzy/generated/types.rb', line 1162 def state @state end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
1162 1163 1164 |
# File 'lib/fizzy/generated/types.rb', line 1162 def updated_at @updated_at end |
Class Method Details
.from_json(data) ⇒ Object
1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'lib/fizzy/generated/types.rb', line 1164 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 |