Class: LockstepSdk::EmailReplyGeneratorRequest
- Inherits:
-
Object
- Object
- LockstepSdk::EmailReplyGeneratorRequest
- Defined in:
- lib/lockstep_sdk/models/email_reply_generator_request.rb
Overview
Represents the request to the SAGE GMS API
Instance Attribute Summary collapse
-
#body ⇒ String
The body associated with the email.
-
#date ⇒ Date-time
The date associated with the email.
-
#subject ⇒ String
The subject associated with the email.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ EmailReplyGeneratorRequest
constructor
Initialize the EmailReplyGeneratorRequest using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ EmailReplyGeneratorRequest
Initialize the EmailReplyGeneratorRequest using the provided prototype
25 26 27 28 29 |
# File 'lib/lockstep_sdk/models/email_reply_generator_request.rb', line 25 def initialize(params = {}) @date = params.dig(:date) @body = params.dig(:body) @subject = params.dig(:subject) end |
Instance Attribute Details
#body ⇒ String
Returns The body associated with the email.
37 38 39 |
# File 'lib/lockstep_sdk/models/email_reply_generator_request.rb', line 37 def body @body end |
#date ⇒ Date-time
Returns The date associated with the email.
33 34 35 |
# File 'lib/lockstep_sdk/models/email_reply_generator_request.rb', line 33 def date @date end |
#subject ⇒ String
Returns The subject associated with the email.
41 42 43 |
# File 'lib/lockstep_sdk/models/email_reply_generator_request.rb', line 41 def subject @subject end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
45 46 47 48 49 50 51 |
# File 'lib/lockstep_sdk/models/email_reply_generator_request.rb', line 45 def as_json(={}) { 'date' => @date, 'body' => @body, 'subject' => @subject, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
55 56 57 |
# File 'lib/lockstep_sdk/models/email_reply_generator_request.rb', line 55 def to_json(*) "[#{as_json(*).to_json(*)}]" end |