Class: Metasploit::Credential::Origin::Import
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Metasploit::Credential::Origin::Import
- Defined in:
- app/models/metasploit/credential/origin/import.rb
Overview
An origin for core credentials that were imported by a #task from a file.
Instance Attribute Summary collapse
-
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
Core credentials imported from #filename.
-
#created_at ⇒ DateTime
When the credentials were imported.
-
#filename ⇒ String
The ‘File.basename` of the file from which the core credentials were imported.
-
#task ⇒ Mdm::Task
The task that did the import.
-
#updated_at ⇒ DateTime
When this origin was last updated.
Instance Attribute Details
#cores ⇒ ActiveRecord::Relation<Metasploit::Credential::Core>
Core credentials imported from #filename.
11 12 13 14 |
# File 'app/models/metasploit/credential/origin/import.rb', line 11 has_many :cores, as: :origin, class_name: 'Metasploit::Credential::Core', dependent: :destroy |
#created_at ⇒ DateTime
When the credentials were imported.
|
# File 'app/models/metasploit/credential/origin/import.rb', line 28
|
#filename ⇒ String
The ‘File.basename` of the file from which the core credentials were imported. Because only a basename is available, a #filename may be used more than once for the same #task.
|
# File 'app/models/metasploit/credential/origin/import.rb', line 33
|
#task ⇒ Mdm::Task
The task that did the import.
20 21 22 |
# File 'app/models/metasploit/credential/origin/import.rb', line 20 belongs_to :task, class_name: 'Mdm::Task', inverse_of: :import_credential_origins |
#updated_at ⇒ DateTime
When this origin was last updated.
|
# File 'app/models/metasploit/credential/origin/import.rb', line 39
|