Class: Avro::Builder::Types::BytesType
- Inherits:
-
PrimitiveType
- Object
- Type
- PrimitiveType
- Avro::Builder::Types::BytesType
- Defined in:
- lib/avro/builder/types/bytes_type.rb
Overview
Subclass for the primitive Bytes type because it supports the decimal logical type.
Constant Summary
Constants included from DslAttributes
DslAttributes::ATTRIBUTE_NAMES
Instance Attribute Summary
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(cache:, field: nil) ⇒ BytesType
constructor
A new instance of BytesType.
Methods inherited from PrimitiveType
Methods inherited from Type
#abstract?, #cache!, #configure_options, #dsl_method?, #dsl_respond_to?, #namespace, #serialize, #to_h, union_with_null, #validate!
Methods included from Metadata
attribute?, #method_missing, register, reset!, #respond_to_missing?
Methods included from DslAttributes
Methods included from DslOptions
Constructor Details
#initialize(cache:, field: nil) ⇒ BytesType
Returns a new instance of BytesType.
10 11 12 |
# File 'lib/avro/builder/types/bytes_type.rb', line 10 def initialize(cache:, field: nil) super('bytes', field: field, cache: cache) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Avro::Builder::Metadata