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.



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

#commandObject (readonly)

Returns the value of attribute command.



53
54
55
# File 'lib/samovar/error.rb', line 53

def command
  @command
end

#fieldObject (readonly)

Returns the value of attribute field.



54
55
56
# File 'lib/samovar/error.rb', line 54

def field
  @field
end