Class: LockstepSdk::EmailReplyGeneratorSuggestions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#bodyString

Returns The body of the reply generated by the GMS Api.

Returns:

  • (String)

    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

#kindString

Returns The kind of reply generated by the GMS Api.

Returns:

  • (String)

    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.

Returns:

  • (object)

    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(options={})
    {
        'kind' => @kind,
        'body' => @body,
    }
end

#to_json(*options) ⇒ String

Returns This object converted to a JSON string.

Returns:

  • (String)

    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(*options)
    "[#{as_json(*options).to_json(*options)}]"
end