Exception: Samovar::MissingValueError

Inherits:
Error
  • Object
show all
Defined in:
lib/samovar/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



38
39
40
# File 'lib/samovar/error.rb', line 38

def command
  @command
end

#fieldObject (readonly)

Returns the value of attribute field.



39
40
41
# File 'lib/samovar/error.rb', line 39

def field
  @field
end