Class: Ronin::DB::Software
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::Software
- Includes:
- Model
- Defined in:
- lib/ronin/db/software.rb
Overview
Represents a Software product.
Instance Attribute Summary collapse
-
#id ⇒ Integer
The primary key of the software.
-
#name ⇒ String
The software's name.
-
#open_ports ⇒ Array<OpenPort>
The open ports running the software.
-
#vendor ⇒ SoftwareVendor?
The vendor of the software.
-
#version ⇒ String
The software's Version.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the software to a String.
Methods included from Model
Instance Attribute Details
#id ⇒ Integer
The primary key of the software.
38 |
# File 'lib/ronin/db/software.rb', line 38 attribute :id, :integer |
#name ⇒ String
The software's name.
44 |
# File 'lib/ronin/db/software.rb', line 44 attribute :name, :string |
#open_ports ⇒ Array<OpenPort>
The open ports running the software
66 |
# File 'lib/ronin/db/software.rb', line 66 has_many :open_ports |
#vendor ⇒ SoftwareVendor?
The vendor of the software
59 60 |
# File 'lib/ronin/db/software.rb', line 59 belongs_to :vendor, optional: true, class_name: 'SoftwareVendor' |
#version ⇒ String
The software's Version.
51 |
# File 'lib/ronin/db/software.rb', line 51 attribute :version, :string |
Instance Method Details
#to_s ⇒ String
Converts the software to a String.
76 77 78 |
# File 'lib/ronin/db/software.rb', line 76 def to_s [self.vendor, self.name, self.version].compact.join(' ') end |