Class: Metasploit::Credential::Private
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Metasploit::Credential::Private
- Includes:
- Model::Search
- Defined in:
- app/models/metasploit/credential/private.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
The core credentials that combine this private credential with its public credential and/or realm.
-
#created_at ⇒ DateTime
When this private credential was created.
-
#data ⇒ String
The private data for this credential.
-
#id ⇒ Integer?
The id of this private credential in the database.
-
#type ⇒ String
The name of the ‘Class`.
-
#updated_at ⇒ DateTime
The last time this private credential was updated.
Instance Method Summary collapse
-
#to_s ⇒ String
A string suitable for displaying to the user.
Instance Attribute Details
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
The core credentials that combine this private credential with its public credential and/or realm.
17 18 19 20 |
# File 'app/models/metasploit/credential/private.rb', line 17 has_many :cores, class_name: 'Metasploit::Credential::Core', dependent: :destroy, inverse_of: :private |
#created_at ⇒ DateTime
When this private credential was created.
|
# File 'app/models/metasploit/credential/private.rb', line 26
|
#data ⇒ String
The private data for this credential. The semantic meaning of this data varies based on subclass.
|
# File 'app/models/metasploit/credential/private.rb', line 31
|
#id ⇒ Integer?
|
# File 'app/models/metasploit/credential/private.rb', line 36
|
#type ⇒ String
The name of the ‘Class`. Used to instantiate the correct subclass when retrieving records from the database.
|
# File 'app/models/metasploit/credential/private.rb', line 43
|
#updated_at ⇒ DateTime
The last time this private credential was updated.
|
# File 'app/models/metasploit/credential/private.rb', line 48
|
Instance Method Details
#to_s ⇒ String
A string suitable for displaying to the user
101 102 103 |
# File 'app/models/metasploit/credential/private.rb', line 101 def to_s data.to_s end |