Class: Atatus::TraceContext::Tracestate::Entry Private
- Inherits:
-
Object
- Object
- Atatus::TraceContext::Tracestate::Entry
- Defined in:
- lib/atatus/trace_context/tracestate.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
- #key ⇒ Object readonly private
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Entry
constructor
private
A new instance of Entry.
- #to_s ⇒ Object private
Constructor Details
#initialize(key, value) ⇒ Entry
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 Entry.
28 29 30 31 |
# File 'lib/atatus/trace_context/tracestate.rb', line 28 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
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.
33 34 35 |
# File 'lib/atatus/trace_context/tracestate.rb', line 33 def key @key end |
#value ⇒ Object (readonly)
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.
33 34 35 |
# File 'lib/atatus/trace_context/tracestate.rb', line 33 def value @value 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.
35 36 37 |
# File 'lib/atatus/trace_context/tracestate.rb', line 35 def to_s "#{key}=#{value}" end |