Class: ElasticAPM::Span::Context::Http Private
- Inherits:
-
Object
- Object
- ElasticAPM::Span::Context::Http
- Defined in:
- lib/elastic_apm/span/context/http.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 Attribute Summary collapse
- #method ⇒ Object private
- #status_code ⇒ Object private
- #url ⇒ Object private
Instance Method Summary collapse
-
#initialize(url: nil, status_code: nil, method: nil) ⇒ Http
constructor
private
A new instance of Http.
Constructor Details
#initialize(url: nil, status_code: nil, method: nil) ⇒ Http
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 Http.
25 26 27 28 29 |
# File 'lib/elastic_apm/span/context/http.rb', line 25 def initialize(url: nil, status_code: nil, method: nil) @url = sanitize_url(url) @status_code = status_code @method = method end |
Instance Attribute Details
#method ⇒ 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.
31 32 33 |
# File 'lib/elastic_apm/span/context/http.rb', line 31 def method @method end |
#status_code ⇒ 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.
31 32 33 |
# File 'lib/elastic_apm/span/context/http.rb', line 31 def status_code @status_code end |
#url ⇒ 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.
31 32 33 |
# File 'lib/elastic_apm/span/context/http.rb', line 31 def url @url end |