Class: A3rt::Talk::Result
- Inherits:
-
Object
- Object
- A3rt::Talk::Result
- Defined in:
- lib/a3rt/talk/result.rb
Instance Attribute Summary collapse
-
#perplexity ⇒ Object
readonly
Returns the value of attribute perplexity.
-
#reply ⇒ Object
readonly
Returns the value of attribute reply.
Instance Method Summary collapse
-
#initialize(data) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(data) ⇒ Result
Returns a new instance of Result.
6 7 8 9 |
# File 'lib/a3rt/talk/result.rb', line 6 def initialize(data) @perplexity = data['perplexity'] @reply = data['reply'] end |
Instance Attribute Details
#perplexity ⇒ Object (readonly)
Returns the value of attribute perplexity.
3 4 5 |
# File 'lib/a3rt/talk/result.rb', line 3 def perplexity @perplexity end |
#reply ⇒ Object (readonly)
Returns the value of attribute reply.
4 5 6 |
# File 'lib/a3rt/talk/result.rb', line 4 def reply @reply end |