Class: AssemblyAI::DefaultUserAgent

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/assemblyai/types/user_agent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDefaultUserAgent

Returns a new instance of DefaultUserAgent.



64
65
66
67
# File 'lib/assemblyai/types/user_agent.rb', line 64

def initialize
  @user_agent = AssemblyAI::UserAgent.new
  @user_agent.add_item("sdk", AssemblyAI::UserAgentItem.new(name: "Ruby", version: AssemblyAI::Gemconfig::VERSION))
end

Instance Attribute Details

#user_agentObject (readonly)

Returns the value of attribute user_agent.



62
63
64
# File 'lib/assemblyai/types/user_agent.rb', line 62

def user_agent
  @user_agent
end