Class: Avro::Builder::Types::FixedType

Inherits:
NamedType show all
Defined in:
lib/avro/builder/types/fixed_type.rb

Direct Known Subclasses

Fixed

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 NamedType

#cache!, #name, #name_fragment, #namespace, #serialize, #to_h

Methods included from NamedErrorHandling

#type_name, #type_namespace

Methods included from Aliasable

included

Methods included from Namespaceable

#fullname

Methods inherited from ComplexType

avro_type_name, #initialize, #namespace

Methods inherited from Type

#abstract?, #cache!, #configure_options, #dsl_method?, #dsl_respond_to?, #initialize, #namespace, #serialize, #to_h, union_with_null

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

This class inherits a constructor from Avro::Builder::Types::ComplexType

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Avro::Builder::Metadata

Instance Method Details

#validate! ⇒ Object



10
11
12
13
# File 'lib/avro/builder/types/fixed_type.rb', line 10

def validate!
  super
  validate_required_attribute!(:size)
end