Class: TalkApi::Result
- Inherits:
-
Object
- Object
- TalkApi::Result
- Defined in:
- lib/talk_api/result.rb
Overview
Store result class
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(perplexity, reply) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(perplexity, reply) ⇒ Result
Returns a new instance of Result.
8 9 10 11 |
# File 'lib/talk_api/result.rb', line 8 def initialize(perplexity, reply) @perplexity = perplexity @reply = reply end |
Instance Attribute Details
#perplexity ⇒ Object (readonly)
Returns the value of attribute perplexity.
6 7 8 |
# File 'lib/talk_api/result.rb', line 6 def perplexity @perplexity end |
#reply ⇒ Object (readonly)
Returns the value of attribute reply.
6 7 8 |
# File 'lib/talk_api/result.rb', line 6 def reply @reply end |