class Release
Represents a named object that has been released (no longer available).
Definitions
def initialize(name)
Initialize a new release message.
Signature
-
parameter
nameSymbol 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
packerMessagePack::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
unpackerMessagePack::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