Class: Avro::Builder::Types::FixedType
- Defined in:
- lib/avro/builder/types/fixed_type.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Type
Instance Method Summary collapse
Methods inherited from NamedType
#cache!, #name, #name_fragment, #namespace
Methods included from NamedErrorHandling
Methods included from Aliasable
Methods included from Namespaceable
Methods included from ComplexType
included, #initialize, #namespace
Methods inherited from Type
#abstract?, #cache!, #configure_options, #dsl_method?, #dsl_respond_to?, #initialize, #namespace, union_with_null
Methods included from DslAttributes
Methods included from DslOptions
Instance Method Details
#serialize(reference_state) ⇒ Object
10 11 12 |
# File 'lib/avro/builder/types/fixed_type.rb', line 10 def serialize(reference_state) super(reference_state, overrides: serialized_attributes) end |
#to_h(reference_state) ⇒ Object
14 15 16 |
# File 'lib/avro/builder/types/fixed_type.rb', line 14 def to_h(reference_state) super(reference_state, overrides: serialized_attributes) end |
#validate! ⇒ Object
18 19 20 21 |
# File 'lib/avro/builder/types/fixed_type.rb', line 18 def validate! super validate_required_attribute!(:size) end |