Async::BusSourceAsyncBusProtocolRelease

class Release

Represents a named object that has been released (no longer available).

Definitions

def initialize(name)

Initialize a new release message.

Signature

parameter name Symbol

The name of the released object.

Implementation

def initialize(name)
	@name = name
end

attr :name

Signature

attribute Symbol

The name of the released object.

def pack(packer)

Pack the release into a MessagePack packer.

Signature

parameter packer MessagePack::Packer

The packer to write to.

Implementation

def pack(packer)
	packer.write(@name)
end

def self.unpack(unpacker)

Unpack a release from a MessagePack unpacker.

Signature

parameter unpacker MessagePack::Unpacker

The unpacker to read from.

returns Release

A new release instance.

Implementation

def self.unpack(unpacker)
	name = unpacker.read
	
	return self.new(name)
end