Class: LockstepSdk::EmailReplyGeneratorSuggestions
- Inherits:
-
Object
- Object
- LockstepSdk::EmailReplyGeneratorSuggestions
- Defined in:
- lib/lockstep_sdk/models/email_reply_generator_suggestions.rb
Overview
Represents the email reply suggestion from the SAGE GMS API
Instance Attribute Summary collapse
-
#body ⇒ String
The body of the reply generated by the GMS Api.
-
#kind ⇒ String
The kind of reply generated by the GMS Api.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ EmailReplyGeneratorSuggestions
constructor
Initialize the EmailReplyGeneratorSuggestions using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ EmailReplyGeneratorSuggestions
Initialize the EmailReplyGeneratorSuggestions using the provided prototype
25 26 27 28 |
# File 'lib/lockstep_sdk/models/email_reply_generator_suggestions.rb', line 25 def initialize(params = {}) @kind = params.dig(:kind) @body = params.dig(:body) end |
Instance Attribute Details
#body ⇒ String
Returns The body of the reply generated by the GMS Api.
36 37 38 |
# File 'lib/lockstep_sdk/models/email_reply_generator_suggestions.rb', line 36 def body @body end |
#kind ⇒ String
Returns The kind of reply generated by the GMS Api.
32 33 34 |
# File 'lib/lockstep_sdk/models/email_reply_generator_suggestions.rb', line 32 def kind @kind 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_suggestions.rb', line 40 def as_json(={}) { 'kind' => @kind, 'body' => @body, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
49 50 51 |
# File 'lib/lockstep_sdk/models/email_reply_generator_suggestions.rb', line 49 def to_json(*) "[#{as_json(*).to_json(*)}]" end |