Class: MessagePack::ExtensionValue

Inherits:
Struct
  • Object
show all
Defined in:
doclib/msgpack/extension_value.rb

Overview

MessagePack::ExtensionValue is a struct to represent unknown ext type object. Its contents are accessed by type and payload (messagepack bytes representation) methods. And it is extended to add to_msgpack object.

Instance Attribute Summary collapse

Instance Attribute Details

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



8
9
10
# File 'doclib/msgpack/extension_value.rb', line 8

def payload
  @payload
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'doclib/msgpack/extension_value.rb', line 8

def type
  @type
end