Class: ScanDB::OSClass
Constant Summary
Constants included from Model
Instance Method Summary collapse
-
#to_s ⇒ Object
Returns the String form of the OS Class.
Methods included from Model
Instance Method Details
#to_s ⇒ Object
Returns the String form of the OS Class.
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/scandb/os_class.rb', line 49 def to_s vars = [] vars << "type=#{type}" if type vars << "vendor=#{vendor}" if vendor vars << "family=#{family}" if family vars << "version=#{version}" if version return vars.join(' ') end |