Class: GroqRuby::Resources::Base
- Inherits:
-
Object
- Object
- GroqRuby::Resources::Base
- Defined in:
- lib/groq_ruby/resources/base.rb
Overview
Common scaffolding shared by every resource: holds the transport and exposes a small set of helpers for building requests and surfacing validation/transport errors.
Direct Known Subclasses
Audio::Speech, Audio::Transcriptions, Audio::Translations, Batches, Chat::Completions, Embeddings, Files, Models
Instance Method Summary collapse
-
#initialize(transport) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(transport) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/groq_ruby/resources/base.rb', line 7 def initialize(transport) @transport = transport end |