Class: OperatingSystem

Inherits:
Domain::Model show all
Defined in:
lib/domain/operating_system/model.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Domain::Model

columns, from_csv, from_json, headers, #initialize, table_name, #to_csv, #to_hash, #to_s, view

Constructor Details

This class inherits a constructor from Domain::Model

Instance Attribute Details

#architectureObject

Returns the value of attribute architecture.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def architecture
  @architecture
end

#asset_typeObject

Returns the value of attribute asset_type.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def asset_type
  @asset_type
end

#cpeObject

Returns the value of attribute cpe.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def cpe
  @cpe
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def description
  @description
end

#familyObject

Returns the value of attribute family.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def family
  @family
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def name
  @name
end

#systemObject

Returns the value of attribute system.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def system
  @system
end

#vendorObject

Returns the value of attribute vendor.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def vendor
  @vendor
end

#versionObject

Returns the value of attribute version.



6
7
8
# File 'lib/domain/operating_system/model.rb', line 6

def version
  @version
end

Class Method Details

.primary_keyObject



17
18
19
# File 'lib/domain/operating_system/model.rb', line 17

def self.primary_key
  'id'
end