Class: Ronin::DB::ServiceCredential

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/db/service_credential.rb

Overview

Represents Credentials used to access a TCP/UDP Service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

included

Instance Attribute Details

#credentialCredential

Returns:



43
# File 'lib/ronin/db/service_credential.rb', line 43

belongs_to :credential

#idInteger

Primary key of the service credential.

Returns:

  • (Integer)


38
# File 'lib/ronin/db/service_credential.rb', line 38

attribute :id, :integer

#open_portOpenPort

The open port the credential belongs to.

Returns:



49
# File 'lib/ronin/db/service_credential.rb', line 49

belongs_to :open_port

Instance Method Details

#to_sString

Converts the service credential to a String.

Returns:

  • (String)

    The service credential string.



57
58
59
# File 'lib/ronin/db/service_credential.rb', line 57

def to_s
  "#{self.credential} (#{self.open_port})"
end