Class: Deepseek::Response
- Inherits:
-
Object
- Object
- Deepseek::Response
- Defined in:
- lib/deepseek-ruby/client.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #choices ⇒ Object
-
#initialize(data) ⇒ Response
constructor
A new instance of Response.
- #usage ⇒ Object
Constructor Details
#initialize(data) ⇒ Response
63 64 65 |
# File 'lib/deepseek-ruby/client.rb', line 63 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
61 62 63 |
# File 'lib/deepseek-ruby/client.rb', line 61 def data @data end |
Instance Method Details
#choices ⇒ Object
67 68 69 |
# File 'lib/deepseek-ruby/client.rb', line 67 def choices data['choices'] end |
#usage ⇒ Object
71 72 73 |
# File 'lib/deepseek-ruby/client.rb', line 71 def usage data['usage'] end |