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

#advisory ⇒ Advisory?

The associated advisory.

Returns:



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

belongs_to :advisory, optional: true

#body ⇒ String

The note text.

Returns:

  • (String)


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

attribute :body, :text

#cert ⇒ Cert?

The associated certificate.

Returns:



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

belongs_to :cert, optional: true

#created_at ⇒ Time

Tracks when the note was created.

Returns:

  • (Time)


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

attribute :created_at, :datetime

#credential ⇒ Credential?

The associated credential.

Returns:



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

belongs_to :credential, optional: true

#email_address ⇒ EmailAddress?

The associated email address.

Returns:



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

belongs_to :email_address, optional: true

#host_name ⇒ HostName?

The associated host name.

Returns:



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

belongs_to :host_name, optional: true

#id ⇒ Integer

The primary key of the Note.

Returns:

  • (Integer)


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

attribute :id, :integer

#ip_address ⇒ IPAddress?

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_address ⇒ MACAddress?

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_port ⇒ OpenPort?

The associated open port.

Returns:



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

belongs_to :open_port, optional: true

#organization ⇒ Organization?

The associated organization.

Returns:



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

belongs_to :organization, optional: true

#password ⇒ Password?

The associated password.

Returns:



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

belongs_to :password, optional: true

#person ⇒ Person?

The associated person.

Returns:



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

belongs_to :person, optional: true

#phone_number ⇒ PhoneNumber?

The associated phone number.

Returns:



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

belongs_to :phone_number, optional: true

#port ⇒ Port?

The associated port.

Returns:



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

belongs_to :port, optional: true

#service ⇒ Service?

The associated service.

Returns:



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

belongs_to :service, optional: true

#street_address ⇒ StreetAddress?

The associated street address.

Returns:



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.

Returns:

  • (Time)


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

attribute :updated_at, :datetime

#url ⇒ URL?

The associated URL.

Returns:



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.

Returns:



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

belongs_to :user_name, optional: true