Module: Datadog::Transport::Parcel

Included in:
Traces::Parcel
Defined in:
lib/ddtrace/transport/parcel.rb

Overview

Data transfer object for generic data

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/ddtrace/transport/parcel.rb', line 5

def data
  @data
end

Instance Method Details

#encode_with(encoder) ⇒ Object



12
13
14
# File 'lib/ddtrace/transport/parcel.rb', line 12

def encode_with(encoder)
  encoder.encode(data)
end

#initialize(data) ⇒ Object



8
9
10
# File 'lib/ddtrace/transport/parcel.rb', line 8

def initialize(data)
  @data = data
end