Class: Openai::Resource::Api
- Inherits:
-
Object
- Object
- Openai::Resource::Api
- Defined in:
- lib/openai/resource/api.rb
Direct Known Subclasses
Chat::Completions, File::Create, FineTune::Create, Images::Create, Images::Edit, Images::Variations, Model, Models
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize ⇒ Api
constructor
A new instance of Api.
- #request ⇒ Object
Constructor Details
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
9 10 11 |
# File 'lib/openai/resource/api.rb', line 9 def connection @connection end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/openai/resource/api.rb', line 9 def data @data end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/openai/resource/api.rb', line 9 def path @path end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/openai/resource/api.rb', line 9 def response @response end |
Instance Method Details
#request ⇒ Object
17 18 19 |
# File 'lib/openai/resource/api.rb', line 17 def request parse_body end |