Class: Ronin::DB::Note
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::Note
- Includes:
- Model
- Defined in:
- lib/ronin/db/note.rb
Overview
A model for associating notes with other models.
Instance Attribute Summary collapse
-
#advisory ⇒ Advisory?
The associated advisory.
-
#body ⇒ String
The note text.
-
#cert ⇒ Cert?
The associated certificate.
-
#created_at ⇒ Time
Tracks when the note was created.
-
#credential ⇒ Credential?
The associated credential.
-
#email_address ⇒ EmailAddress?
The associated email address.
-
#host_name ⇒ HostName?
The associated host name.
-
#id ⇒ Integer
The primary key of the Note.
-
#ip_address ⇒ IPAddress?
The associated IP address.
-
#mac_address ⇒ MACAddress?
The associated MAC address.
-
#open_port ⇒ OpenPort?
The associated open port.
-
#organization ⇒ Organization?
The associated organization.
-
#password ⇒ Password?
The associated password.
-
#person ⇒ Person?
The associated person.
-
#phone_number ⇒ PhoneNumber?
The associated phone number.
-
#port ⇒ Port?
The associated port.
-
#service ⇒ Service?
The associated service.
-
#street_address ⇒ StreetAddress?
The associated street address.
-
#updated_at ⇒ Time
Tracks when the note was last edited.
-
#url ⇒ URL?
The associated URL.
-
#user_name ⇒ UserName?
The associated user name.
Method Summary
Methods included from Model
Instance Attribute Details
#advisory ⇒ Advisory?
The associated advisory.
140 |
# File 'lib/ronin/db/note.rb', line 140 belongs_to :advisory, optional: true |
#body ⇒ String
The note text.
46 |
# File 'lib/ronin/db/note.rb', line 46 attribute :body, :text |
#cert ⇒ Cert?
The associated certificate.
103 |
# File 'lib/ronin/db/note.rb', line 103 belongs_to :cert, optional: true |
#created_at ⇒ Time
Tracks when the note was created.
53 |
# File 'lib/ronin/db/note.rb', line 53 attribute :created_at, :datetime |
#credential ⇒ Credential?
The associated credential.
134 |
# File 'lib/ronin/db/note.rb', line 134 belongs_to :credential, optional: true |
#email_address ⇒ EmailAddress?
The associated email address.
122 |
# File 'lib/ronin/db/note.rb', line 122 belongs_to :email_address, optional: true |
#host_name ⇒ HostName?
The associated host name.
79 |
# File 'lib/ronin/db/note.rb', line 79 belongs_to :host_name, optional: true |
#id ⇒ Integer
The primary key of the Note.
40 |
# File 'lib/ronin/db/note.rb', line 40 attribute :id, :integer |
#ip_address ⇒ IPAddress?
The associated IP address.
72 73 |
# File 'lib/ronin/db/note.rb', line 72 belongs_to :ip_address, optional: true, class_name: 'IPAddress' |
#mac_address ⇒ MACAddress?
The associated MAC address.
65 66 |
# File 'lib/ronin/db/note.rb', line 65 belongs_to :mac_address, optional: true, class_name: 'MACAddress' |
#open_port ⇒ OpenPort?
The associated open port.
97 |
# File 'lib/ronin/db/note.rb', line 97 belongs_to :open_port, optional: true |
#organization ⇒ Organization?
The associated organization.
164 |
# File 'lib/ronin/db/note.rb', line 164 belongs_to :organization, optional: true |
#password ⇒ Password?
The associated password.
128 |
# File 'lib/ronin/db/note.rb', line 128 belongs_to :password, optional: true |
#person ⇒ Person?
The associated person.
158 |
# File 'lib/ronin/db/note.rb', line 158 belongs_to :person, optional: true |
#phone_number ⇒ PhoneNumber?
The associated phone number.
146 |
# File 'lib/ronin/db/note.rb', line 146 belongs_to :phone_number, optional: true |
#port ⇒ Port?
The associated port.
85 |
# File 'lib/ronin/db/note.rb', line 85 belongs_to :port, optional: true |
#service ⇒ Service?
The associated service.
91 |
# File 'lib/ronin/db/note.rb', line 91 belongs_to :service, optional: true |
#street_address ⇒ StreetAddress?
The associated street address.
152 |
# File 'lib/ronin/db/note.rb', line 152 belongs_to :street_address, optional: true |
#updated_at ⇒ Time
Tracks when the note was last edited.
59 |
# File 'lib/ronin/db/note.rb', line 59 attribute :updated_at, :datetime |
#url ⇒ URL?
The associated URL.
109 110 |
# File 'lib/ronin/db/note.rb', line 109 belongs_to :url, optional: true, class_name: 'URL' |
#user_name ⇒ UserName?
The associated user name.
116 |
# File 'lib/ronin/db/note.rb', line 116 belongs_to :user_name, optional: true |