Class: Ronin::DB::Note

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

Overview

A model for associating notes with other models.

Since:

  • 0.2.0

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#advisoryAdvisory?

The associated advisory.

Returns:



140
# File 'lib/ronin/db/note.rb', line 140

belongs_to :advisory, optional: true

#bodyString

The note text.

Returns:

  • (String)


46
# File 'lib/ronin/db/note.rb', line 46

attribute :body, :text

#certCert?

The associated certificate.

Returns:



103
# File 'lib/ronin/db/note.rb', line 103

belongs_to :cert, optional: true

#created_atTime

Tracks when the note was created.

Returns:

  • (Time)


53
# File 'lib/ronin/db/note.rb', line 53

attribute :created_at, :datetime

#credentialCredential?

The associated credential.

Returns:



134
# File 'lib/ronin/db/note.rb', line 134

belongs_to :credential, optional: true

#email_addressEmailAddress?

The associated email address.

Returns:



122
# File 'lib/ronin/db/note.rb', line 122

belongs_to :email_address, optional: true

#host_nameHostName?

The associated host name.

Returns:



79
# File 'lib/ronin/db/note.rb', line 79

belongs_to :host_name, optional: true

#idInteger

The primary key of the Note.

Returns:

  • (Integer)


40
# File 'lib/ronin/db/note.rb', line 40

attribute :id, :integer

#ip_addressIPAddress?

The associated IP address.

Returns:



72
73
# File 'lib/ronin/db/note.rb', line 72

belongs_to :ip_address, optional:   true,
class_name: 'IPAddress'

#mac_addressMACAddress?

The associated MAC address.

Returns:



65
66
# File 'lib/ronin/db/note.rb', line 65

belongs_to :mac_address, optional:   true,
class_name: 'MACAddress'

#open_portOpenPort?

The associated open port.

Returns:



97
# File 'lib/ronin/db/note.rb', line 97

belongs_to :open_port, optional: true

#organizationOrganization?

The associated organization.

Returns:



164
# File 'lib/ronin/db/note.rb', line 164

belongs_to :organization, optional: true

#passwordPassword?

The associated password.

Returns:



128
# File 'lib/ronin/db/note.rb', line 128

belongs_to :password, optional: true

#personPerson?

The associated person.

Returns:



158
# File 'lib/ronin/db/note.rb', line 158

belongs_to :person, optional: true

#phone_numberPhoneNumber?

The associated phone number.

Returns:



146
# File 'lib/ronin/db/note.rb', line 146

belongs_to :phone_number, optional: true

#portPort?

The associated port.

Returns:



85
# File 'lib/ronin/db/note.rb', line 85

belongs_to :port, optional: true

#serviceService?

The associated service.

Returns:



91
# File 'lib/ronin/db/note.rb', line 91

belongs_to :service, optional: true

#street_addressStreetAddress?

The associated street address.

Returns:



152
# File 'lib/ronin/db/note.rb', line 152

belongs_to :street_address, optional: true

#updated_atTime

Tracks when the note was last edited.

Returns:

  • (Time)


59
# File 'lib/ronin/db/note.rb', line 59

attribute :updated_at, :datetime

#urlURL?

The associated URL.

Returns:



109
110
# File 'lib/ronin/db/note.rb', line 109

belongs_to :url, optional:   true,
class_name: 'URL'

#user_nameUserName?

The associated user name.

Returns:



116
# File 'lib/ronin/db/note.rb', line 116

belongs_to :user_name, optional: true