class Avro::Builder::RequiredAttributeError

Public Class Methods

new(type:, attribute:, field: nil, name: nil) click to toggle source
Calls superclass method
# File lib/avro/builder/errors.rb, line 7
def initialize(type:, attribute:, field: nil, name: nil)
  location = if field
               "field '#{field}' of "
             elsif name
               "'#{name}' of "
             end
  super("attribute :#{attribute} missing for #{location}type :#{type}")
end