class NluAdapter::Adapters::Lex::Intent
Class represents Intent
in an IntentCollection
Public Class Methods
new(options = {})
click to toggle source
Constructor
# File lib/nlu_adapter/lex.rb, line 142 def initialize(options = {}) @name = options[:name] @version = options[:version] @checksum = options[:checksum] end
Public Instance Methods
to_h()
click to toggle source
Convert self to Hash @return [Hash] ruby hash
# File lib/nlu_adapter/lex.rb, line 151 def to_h { name: @name, sample_utterances: @utterences, fulfillment_activity: { type: "ReturnIntent" }, checksum: @checksum } end
to_json()
click to toggle source
convert self to Json @return [json] json
# File lib/nlu_adapter/lex.rb, line 165 def to_json to_h.to_json end