Class: OpenAI::Resources::Skills::Content
- Inherits:
-
Object
- Object
- OpenAI::Resources::Skills::Content
- Defined in:
- lib/openai/resources/skills/content.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Content
constructor
private
A new instance of Content.
-
#retrieve(skill_id, request_options: {}) ⇒ StringIO
Download a skill zip bundle by its ID.
Constructor Details
#initialize(client:) ⇒ Content
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Content.
31 32 33 |
# File 'lib/openai/resources/skills/content.rb', line 31 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(skill_id, request_options: {}) ⇒ StringIO
Download a skill zip bundle by its ID.
18 19 20 21 22 23 24 25 26 |
# File 'lib/openai/resources/skills/content.rb', line 18 def retrieve(skill_id, params = {}) @client.request( method: :get, path: ["skills/%1$s/content", skill_id], headers: {"accept" => "application/binary"}, model: StringIO, options: params[:request_options] ) end |