Class: ApolloDeploySignalSdkRails::EmailTimelineResponse
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdkRails::EmailTimelineResponse
- Defined in:
- lib/apollo_deploy_signal_sdk_rails/types.rb
Overview
Schema type: EmailTimelineResponse
Instance Attribute Summary collapse
Class Method Summary collapse
-
.from_json(attributes) ⇒ EmailTimelineResponse
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(items:) ⇒ EmailTimelineResponse
constructor
A new instance of EmailTimelineResponse.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(items:) ⇒ EmailTimelineResponse
Returns a new instance of EmailTimelineResponse.
4278 4279 4280 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4278 def initialize(items: ) @items = items end |
Instance Attribute Details
#items ⇒ Array<EmailTimelineItem>
4275 4276 4277 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4275 def items @items end |
Class Method Details
.from_json(attributes) ⇒ EmailTimelineResponse
Create an instance from a parsed JSON hash.
4292 4293 4294 4295 4296 4297 4298 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4292 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.
4283 4284 4285 4286 4287 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4283 def to_h { items: @items, }.compact end |