Class: ApiAiRuby::Entry
- Inherits:
-
Object
- Object
- ApiAiRuby::Entry
- Defined in:
- lib/api-ai-ruby/models/entry.rb
Instance Attribute Summary collapse
-
#synonyms ⇒ Object
Returns the value of attribute synonyms.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, synonyms) ⇒ Entry
constructor
A new instance of Entry.
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(value, synonyms) ⇒ Entry
Returns a new instance of Entry.
7 8 9 10 |
# File 'lib/api-ai-ruby/models/entry.rb', line 7 def initialize (value, synonyms) @value = value @synonyms = synonyms end |
Instance Attribute Details
#synonyms ⇒ Object
Returns the value of attribute synonyms.
3 4 5 |
# File 'lib/api-ai-ruby/models/entry.rb', line 3 def synonyms @synonyms end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/api-ai-ruby/models/entry.rb', line 3 def value @value end |
Instance Method Details
#to_json(*args) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/api-ai-ruby/models/entry.rb', line 12 def to_json(*args) { :value => @value, :synonyms => @synonyms }.to_json(*args) end |