Exception: Avromatic::Model::Attributes::OptionalFieldError
- Inherits:
-
StandardError
- Object
- StandardError
- Avromatic::Model::Attributes::OptionalFieldError
- Defined in:
- lib/avromatic/model/attributes.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field) ⇒ OptionalFieldError
constructor
A new instance of OptionalFieldError.
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
15 16 17 |
# File 'lib/avromatic/model/attributes.rb', line 15 def field @field end |