Class: Ronin::DB::ServiceCredential
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::ServiceCredential
- Includes:
- Model
- Defined in:
- lib/ronin/db/service_credential.rb
Overview
Represents Credentials used to access a TCP/UDP Service.
Instance Attribute Summary collapse
- #credential ⇒ Credential
-
#id ⇒ Integer
Primary key of the service credential.
-
#open_port ⇒ OpenPort
The open port the credential belongs to.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the service credential to a String.
Methods included from Model
Instance Attribute Details
#credential ⇒ Credential
43 |
# File 'lib/ronin/db/service_credential.rb', line 43 belongs_to :credential |
#id ⇒ Integer
Primary key of the service credential.
38 |
# File 'lib/ronin/db/service_credential.rb', line 38 attribute :id, :integer |
#open_port ⇒ OpenPort
The open port the credential belongs to.
49 |
# File 'lib/ronin/db/service_credential.rb', line 49 belongs_to :open_port |
Instance Method Details
#to_s ⇒ String
Converts the service credential to a String.
57 58 59 |
# File 'lib/ronin/db/service_credential.rb', line 57 def to_s "#{self.credential} (#{self.open_port})" end |