Module: Avro::Builder::Types::TopLevel

Includes:
TopLevelErrorHandling
Included in:
Enum, Fixed, Record
Defined in:
lib/avro/builder/types/top_level.rb

Overview

This concern is used by types that can be defined at the top-level, i.e. outside a field.

Defined Under Namespace

Modules: TopLevelErrorHandling

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from TopLevelErrorHandling

#type_name=, #type_namespace=

Instance Attribute Details

#namespace=(value) ⇒ Object (writeonly)

Namespace is settable as a top-level option



20
21
22
# File 'lib/avro/builder/types/top_level.rb', line 20

def namespace=(value)
  @namespace = value
end

Class Method Details

.included(base) ⇒ Object



9
10
11
# File 'lib/avro/builder/types/top_level.rb', line 9

def self.included(base)
  base.add_option_name :_name
end