Class: Atatus::Span::Context::Http Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/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

Instance Method Summary collapse

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/atatus/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

#methodObject

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/atatus/span/context/http.rb', line 31

def method
  @method
end

#status_codeObject

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/atatus/span/context/http.rb', line 31

def status_code
  @status_code
end

#urlObject

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/atatus/span/context/http.rb', line 31

def url
  @url
end