Class: Vapi::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/vapi/base.rb

Direct Known Subclasses

Analytics, Assistant, Call, File, KnowledgeBase, Log, PhoneNumber, Squad, Tool

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client = nil) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/vapi/base.rb', line 7

def initialize(client = nil)
  @client = client || Vapi.client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/vapi/base.rb', line 5

def client
  @client
end