Module: Datadog::Core::Transport::Parcel Abstract
- Included in:
- Remote::Transport::Config::EncodedParcel, Tracing::Transport::IO::Traces::Parcel, Tracing::Transport::Traces::EncodedParcel
- Defined in:
- lib/datadog/core/transport/parcel.rb
Overview
This module is abstract.
Data transfer object for generic data
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/datadog/core/transport/parcel.rb', line 9 def data @data end |
Instance Method Details
#encode_with(encoder) ⇒ Object
16 17 18 |
# File 'lib/datadog/core/transport/parcel.rb', line 16 def encode_with(encoder) raise NotImplementedError end |
#initialize(data) ⇒ Object
12 13 14 |
# File 'lib/datadog/core/transport/parcel.rb', line 12 def initialize(data) @data = data end |