Class: ElasticAPM::Transport::UserAgent Private
- Inherits:
-
Object
- Object
- ElasticAPM::Transport::UserAgent
- 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
-
#initialize(config, version: VERSION) ⇒ UserAgent
constructor
private
A new instance of UserAgent.
- #to_s ⇒ Object private
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_s ⇒ Object
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 |