Exception: Avromatic::Model::Attributes::OptionalFieldError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/avromatic/model/attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ OptionalFieldError

Returns a new instance of OptionalFieldError.



17
18
19
20
# File 'lib/avromatic/model/attributes.rb', line 17

def initialize(field)
  @field = field
  super("Optional field not allowed: #{field}")
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



15
16
17
# File 'lib/avromatic/model/attributes.rb', line 15

def field
  @field
end