Exception: Dobby::Package::FieldRequiredError
- Defined in:
- lib/dobby/package.rb
Overview
A required field was missing during initialization
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field) ⇒ FieldRequiredError
constructor
A new instance of FieldRequiredError.
Constructor Details
#initialize(field) ⇒ FieldRequiredError
Returns a new instance of FieldRequiredError.
17 18 19 20 |
# File 'lib/dobby/package.rb', line 17 def initialize(field) super("Missing required field '#{field}'") @field = field end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
16 17 18 |
# File 'lib/dobby/package.rb', line 16 def args @args end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
16 17 18 |
# File 'lib/dobby/package.rb', line 16 def field @field end |