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.
31 32 33 34 35 36 |
# File 'lib/samovar/error.rb', line 31 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.
38 39 40 |
# File 'lib/samovar/error.rb', line 38 def command @command end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
39 40 41 |
# File 'lib/samovar/error.rb', line 39 def field @field end |