Class: Avro::Builder::Types::EnumType
Instance Attribute Summary
Attributes inherited from Type
#type_name
Instance Method Summary
collapse
Methods inherited from NamedType
#cache!, #name_fragment
Methods included from Aliasable
included
#configure_options
#fullname
included, #initialize, #namespace
Methods inherited from Type
#cache!, #configure_options, #dsl_method?, #dsl_respond_to?, #initialize, #namespace, union_with_null
#dsl_attribute?, included
Methods included from DslOptions
#dsl_option?, included
Instance Method Details
#serialize(reference_state) ⇒ Object
17
18
19
|
# File 'lib/avro/builder/types/enum_type.rb', line 17
def serialize(reference_state)
super(reference_state, overrides: serialized_attributes)
end
|
#to_h(reference_state) ⇒ Object
21
22
23
|
# File 'lib/avro/builder/types/enum_type.rb', line 21
def to_h(reference_state)
super(reference_state, overrides: serialized_attributes)
end
|
#validate! ⇒ Object
25
26
27
28
|
# File 'lib/avro/builder/types/enum_type.rb', line 25
def validate!
super
validate_required_attribute!(:symbols)
end
|