lib/ronin/product.rb in ronin-0.0.9 vs lib/ronin/product.rb in ronin-0.1.0
- old
+ new
@@ -39,9 +39,12 @@
property :version, String
# Venders
property :vendor, String
+ # Validates
+ validates_present :name, :version
+
#
# Returns the String form of the product.
#
def to_s
unless @vendor==@name