Module: NluAdapterIntent

Overview

Class represents Intent in an IntentCollection

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/nlu_adapter/intent.rb', line 5

def name
  @name
end

#utterencesObject

Returns the value of attribute utterences.



5
6
7
# File 'lib/nlu_adapter/intent.rb', line 5

def utterences
  @utterences
end

Instance Method Details

#to_hHash

Convert self to Hash

Returns:

  • (Hash)

    ruby hash



10
11
12
13
14
15
# File 'lib/nlu_adapter/intent.rb', line 10

def to_h
	{
		:name => @name,
		:utterences => @utterences
	}
end

#to_jsonJson

Convert self to Json

Returns:

  • (Json)

    json



20
21
22
# File 'lib/nlu_adapter/intent.rb', line 20

def to_json
	to_h.to_json
end