Class: LockstepSdk::EmailReplyGeneratorResponse
- Inherits:
-
Object
- Object
- LockstepSdk::EmailReplyGeneratorResponse
- Defined in:
- lib/lockstep_sdk/models/email_reply_generator_response.rb
Overview
Represents the response from SAGE GMS API
Instance Attribute Summary collapse
-
#message_id ⇒ Uuid
The id for this request in the GMS system.
-
#suggestions ⇒ EmailReplyGeneratorSuggestions
A list of suggested email reply responses.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ EmailReplyGeneratorResponse
constructor
Initialize the EmailReplyGeneratorResponse using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ EmailReplyGeneratorResponse
Initialize the EmailReplyGeneratorResponse using the provided prototype
25 26 27 28 |
# File 'lib/lockstep_sdk/models/email_reply_generator_response.rb', line 25 def initialize(params = {}) @message_id = params.dig(:message_id) @suggestions = params.dig(:suggestions) end |
Instance Attribute Details
#message_id ⇒ Uuid
Returns The id for this request in the GMS system.
32 33 34 |
# File 'lib/lockstep_sdk/models/email_reply_generator_response.rb', line 32 def @message_id end |
#suggestions ⇒ EmailReplyGeneratorSuggestions
Returns A list of suggested email reply responses.
36 37 38 |
# File 'lib/lockstep_sdk/models/email_reply_generator_response.rb', line 36 def suggestions @suggestions end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
40 41 42 43 44 45 |
# File 'lib/lockstep_sdk/models/email_reply_generator_response.rb', line 40 def as_json(={}) { 'message_id' => @message_id, 'suggestions' => @suggestions, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
49 50 51 |
# File 'lib/lockstep_sdk/models/email_reply_generator_response.rb', line 49 def to_json(*) "[#{as_json(*).to_json(*)}]" end |