Class: AssemblyAI::DefaultUserAgent
- Inherits:
-
Object
- Object
- AssemblyAI::DefaultUserAgent
- Includes:
- Singleton
- Defined in:
- lib/assemblyai/types/user_agent.rb
Instance Attribute Summary collapse
-
#user_agent ⇒ Object
readonly
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ DefaultUserAgent
constructor
A new instance of DefaultUserAgent.
Constructor Details
#initialize ⇒ DefaultUserAgent
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_agent ⇒ Object (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 |