Class: Software

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::Model

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

Constructor Details

This class inherits a constructor from Domain::Model

Instance Attribute Details

#cpeObject

Returns the value of attribute cpe.



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

def cpe
  @cpe
end

#db_eos_dateObject

Returns the value of attribute db_eos_date.



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

def db_eos_date
  @db_eos_date
end

#db_eos_sourceObject

Returns the value of attribute db_eos_source.



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

def db_eos_source
  @db_eos_source
end

#db_typeObject

Returns the value of attribute db_type.



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

def db_type
  @db_type
end

#familyObject

Returns the value of attribute family.



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

def family
  @family
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#is_dbObject

Returns the value of attribute is_db.



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

def is_db
  @is_db
end

#is_db_eosObject

Returns the value of attribute is_db_eos.



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

def is_db_eos
  @is_db_eos
end

#is_db_eos_upcoming_6_12_monthsObject

Returns the value of attribute is_db_eos_upcoming_6_12_months.



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

def is_db_eos_upcoming_6_12_months
  @is_db_eos_upcoming_6_12_months
end

#is_db_eos_upcoming_6_monthsObject

Returns the value of attribute is_db_eos_upcoming_6_months.



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

def is_db_eos_upcoming_6_months
  @is_db_eos_upcoming_6_months
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#software_classObject

Returns the value of attribute software_class.



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

def software_class
  @software_class
end

#vendorObject

Returns the value of attribute vendor.



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

def vendor
  @vendor
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#db?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/domain/software/model.rb', line 21

def db?
  is_db == '1'
end