Class: ElasticAPM::Transport::UserAgent Private

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_apm/transport/user_agent.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(config, version: VERSION) ⇒ UserAgent

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of UserAgent.



24
25
26
27
# File 'lib/elastic_apm/transport/user_agent.rb', line 24

def initialize(config, version: VERSION)
  @version = version
  @built = build(config)
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



29
30
31
# File 'lib/elastic_apm/transport/user_agent.rb', line 29

def to_s
  @built
end