Exception: Samovar::MissingValueError
- Defined in:
- lib/samovar/error.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(command, field) ⇒ MissingValueError
constructor
A new instance of MissingValueError.
Constructor Details
#initialize(command, field) ⇒ MissingValueError
Returns a new instance of MissingValueError.
46 47 48 49 50 51 |
# File 'lib/samovar/error.rb', line 46 def initialize(command, field) @command = command @field = field super "#{field} is required" end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
53 54 55 |
# File 'lib/samovar/error.rb', line 53 def command @command end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
54 55 56 |
# File 'lib/samovar/error.rb', line 54 def field @field end |