Module: Datadog::Core::Transport::Parcel Abstract

Overview

This module is abstract.

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.



9
10
11
# File 'lib/datadog/core/transport/parcel.rb', line 9

def data
  @data
end

Instance Method Details

#encode_with(encoder) ⇒ Object

Raises:

  • (NotImplementedError)


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