Class: ApolloDeploySignalSdk::BatchSendRequest
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdk::BatchSendRequest
- Defined in:
- lib/apollo_deploy_signal_sdk/types.rb
Overview
Schema type: BatchSendRequest
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ BatchSendRequest
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(items:) ⇒ BatchSendRequest
constructor
A new instance of BatchSendRequest.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(items:) ⇒ BatchSendRequest
Returns a new instance of BatchSendRequest.
483 484 485 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 483 def initialize(items: ) @items = items end |
Instance Attribute Details
#items ⇒ Array<SendEmailRequest>
480 481 482 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 480 def items @items end |
Class Method Details
.from_json(attributes) ⇒ BatchSendRequest
Create an instance from a parsed JSON hash.
497 498 499 500 501 502 503 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 497 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( items: attributes.key?("items") ? attributes["items"] : attributes[:items], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
488 489 490 491 492 |
# File 'lib/apollo_deploy_signal_sdk/types.rb', line 488 def to_h { items: @items, }.compact end |