Class: ApolloDeploySignalSdk::WebhookDeliveryPageResponse
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::WebhookDeliveryPageResponse
- Defined in:
- lib/apollo_deploy_signal_sdk/types.rb
Overview
Schema type: WebhookDeliveryPageResponse
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ WebhookDeliveryPageResponse
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(data:, page:) ⇒ WebhookDeliveryPageResponse
constructor
A new instance of WebhookDeliveryPageResponse.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(data:, page:) ⇒ WebhookDeliveryPageResponse
Returns a new instance of WebhookDeliveryPageResponse.
3450 3451 3452 3453 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3450 def initialize(data: , page: ) @data = data @page = page end |
Instance Attribute Details
#data ⇒ Array<WebhookDeliveryResponse>
3445 3446 3447 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3445 def data @data end |
#page ⇒ PageInfo
3447 3448 3449 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3447 def page @page end |
Class Method Details
.from_json(attributes) ⇒ WebhookDeliveryPageResponse
Create an instance from a parsed JSON hash.
3466 3467 3468 3469 3470 3471 3472 3473 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3466 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( data: attributes.key?("data") ? attributes["data"] : attributes[:data], page: attributes.key?("page") ? attributes["page"] : attributes[:page], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
3456 3457 3458 3459 3460 3461 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 3456 def to_h { data: @data, page: @page, }.compact end |