Class: ApolloDeploySignalSdk::BatchSendResponse
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::BatchSendResponse
- Defined in:
- lib/apollo_deploy_signal_sdk/types.rb
Overview
Schema type: BatchSendResponse
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ BatchSendResponse
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(results:) ⇒ BatchSendResponse
constructor
A new instance of BatchSendResponse.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(results:) ⇒ BatchSendResponse
Returns a new instance of BatchSendResponse.
512 513 514 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 512 def initialize(results: ) @results = results end |
Instance Attribute Details
#results ⇒ Array<BatchSendItemResponse>
509 510 511 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 509 def results @results end |
Class Method Details
.from_json(attributes) ⇒ BatchSendResponse
Create an instance from a parsed JSON hash.
526 527 528 529 530 531 532 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 526 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( results: attributes.key?("results") ? attributes["results"] : attributes[:results], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
517 518 519 520 521 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 517 def to_h { results: @results, }.compact end |