Class: ScanDB::OSClass

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/scandb/os_class.rb

Constant Summary

Constants included from Model

Model::REPOSITORY_NAME

Instance Method Summary collapse

Methods included from Model

included

Instance Method Details

#to_sObject

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