Class: Cadenya::Types::WebhookDelivery
- Inherits:
-
Object
- Object
- Cadenya::Types::WebhookDelivery
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, data: nil) ⇒ WebhookDelivery
constructor
A new instance of WebhookDelivery.
- #to_h ⇒ Object
Constructor Details
#initialize(metadata: nil, data: nil) ⇒ WebhookDelivery
Returns a new instance of WebhookDelivery.
7193 7194 7195 7196 |
# File 'lib/cadenya/types.rb', line 7193 def initialize(metadata: nil, data: nil) @metadata = @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7191 7192 7193 |
# File 'lib/cadenya/types.rb', line 7191 def data @data end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7191 7192 7193 |
# File 'lib/cadenya/types.rb', line 7191 def @metadata end |
Class Method Details
.from_json(data) ⇒ Object
7198 7199 7200 7201 7202 7203 |
# File 'lib/cadenya/types.rb', line 7198 def self.from_json(data) new( metadata: data["metadata"].nil? ? nil : Types::OperationMetadata.from_json(data["metadata"]), data: data["data"].nil? ? nil : Types::WebhookDeliveryData.from_json(data["data"]), ) end |