Class: OpenTelemetry::DistributedContext::Entry::Value
- Inherits:
-
Object
- Object
- OpenTelemetry::DistributedContext::Entry::Value
- Defined in:
- lib/opentelemetry/distributed_context/entry.rb
Overview
Entry::Value wraps a string. It MUST contain only printable ASCII (codes between 32 and 126).
Instance Method Summary collapse
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ Value
Returns a new instance of Value.
32 33 34 35 36 |
# File 'lib/opentelemetry/distributed_context/entry.rb', line 32 def initialize(value) raise ArgumentError unless Internal.printable_ascii?(value) @value = -value end |
Instance Method Details
#to_s ⇒ Object
38 39 40 |
# File 'lib/opentelemetry/distributed_context/entry.rb', line 38 def to_s @value end |