Class: GroqRuby::Resources::Base

Inherits:
Object
  • Object
show all
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.

Instance Method Summary collapse

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