Module Qpid::Proton::Codec
In: lib/codec/mapping.rb
lib/codec/data.rb

Classes and Modules

Class Qpid::Proton::Codec::Data
Class Qpid::Proton::Codec::DataError
Class Qpid::Proton::Codec::Mapping

Constants

NULL = Mapping.new(Cproton::PN_NULL, "null", [NilClass], "nil?")
BOOL = Mapping.new(Cproton::PN_BOOL, "bool", [TrueClass, FalseClass], "bool")
UBYTE = Mapping.new(Cproton::PN_UBYTE, "ubyte")
BYTE = Mapping.new(Cproton::PN_BYTE, "byte")
USHORT = Mapping.new(Cproton::PN_USHORT, "ushort")
SHORT = Mapping.new(Cproton::PN_SHORT, "short")
UINT = Mapping.new(Cproton::PN_UINT, "uint")
INT = Mapping.new(Cproton::PN_INT, "int")
CHAR = Mapping.new(Cproton::PN_CHAR, "char")
ULONG = Mapping.new(Cproton::PN_ULONG, "ulong")
LONG = Mapping.new(Cproton::PN_LONG, "long", [Fixnum, Bignum])
TIMESTAMP = Mapping.new(Cproton::PN_TIMESTAMP, "timestamp", [Date, Time])
FLOAT = Mapping.new(Cproton::PN_FLOAT, "float")
DOUBLE = Mapping.new(Cproton::PN_DOUBLE, "double", [Float])
DECIMAL32 = Mapping.new(Cproton::PN_DECIMAL32, "decimal32")
DECIMAL64 = Mapping.new(Cproton::PN_DECIMAL64, "decimal64")
DECIMAL128 = Mapping.new(Cproton::PN_DECIMAL128, "decimal128")
UUID = Mapping.new(Cproton::PN_UUID, "uuid")
BINARY = Mapping.new(Cproton::PN_BINARY, "binary")
STRING = Mapping.new(Cproton::PN_STRING, "string", [String, Symbol, Qpid::Proton::Types::UTFString, Qpid::Proton::Types::BinaryString])
SYMBOL = Mapping.new(Cproton::PN_SYMBOL, "symbol")
DESCRIBED = Mapping.new(Cproton::PN_DESCRIBED, "described", [Qpid::Proton::Types::Described], "get_described")
ARRAY = Mapping.new(Cproton::PN_ARRAY, "array", nil, "get_array")
LIST = Mapping.new(Cproton::PN_LIST, "list", [::Array], "get_array")
MAP = Mapping.new(Cproton::PN_MAP, "map", [::Hash], "get_map")

[Validate]