class BSON::Binary
def initialize(data = '', type = :generic)
- Since: - 2.0.0
Parameters:
-
type
(Symbol
) -- The binary type. -
data
(String
) -- The raw binary data.
Other tags:
- Example: Instantiate a binary. -
def initialize(data = '', type = :generic) initialize_instance(data, type) end