class Ravelin::Label
Constants
- LABEL_VALUES
Attributes
comment[RW]
customer_id[RW]
label[RW]
reviewer[RW]
Public Instance Methods
validate()
click to toggle source
Calls superclass method
# File lib/ravelin/label.rb, line 14 def validate super raise InvalidLabelValueError.new("Label value be one of #{LABEL_VALUES.join(', ')}") unless LABEL_VALUES.include?(label) end