Class: Avro::Builder::Types::BytesType

Inherits:
PrimitiveType show all
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

#avro_type_name

Instance Method Summary collapse

Methods inherited from PrimitiveType

#serialize

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

#dsl_attribute?, included

Methods included from DslOptions

#dsl_option?, included

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