Class: LockstepSdk::EmailReplyGeneratorResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/models/email_reply_generator_response.rb

Overview

Represents the response from SAGE GMS API

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idUuid

Returns The id for this request in the GMS system.

Returns:

  • (Uuid)

    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
  @message_id
end

#suggestionsEmailReplyGeneratorSuggestions

Returns A list of suggested email reply responses.

Returns:



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.

Returns:

  • (object)

    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(options={})
    {
        'message_id' => @message_id,
        'suggestions' => @suggestions,
    }
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_response.rb', line 49

def to_json(*options)
    "[#{as_json(*options).to_json(*options)}]"
end