Module: Rex::Exploitation::OpcodeDb::DbEntry
- Includes:
- OpcodeResult
- Defined in:
- lib/rex/exploitation/opcodedb.rb
Overview
This class provides a general interface to items that come from that opcode database that have a symbolic entry identifier and name.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
The unique server identifier.
-
#name ⇒ Object
readonly
The unique name for this entry.
Attributes included from OpcodeResult
Instance Method Summary collapse
-
#filter_hash ⇒ Object
Fields that could possibly be filtered on for this database entry.
- #initialize(hash) ⇒ Object
Instance Attribute Details
#id ⇒ Object (readonly)
The unique server identifier.
75 76 77 |
# File 'lib/rex/exploitation/opcodedb.rb', line 75 def id @id end |
#name ⇒ Object (readonly)
The unique name for this entry.
79 80 81 |
# File 'lib/rex/exploitation/opcodedb.rb', line 79 def name @name end |
Instance Method Details
#filter_hash ⇒ Object
Fields that could possibly be filtered on for this database entry.
65 66 67 68 69 70 |
# File 'lib/rex/exploitation/opcodedb.rb', line 65 def filter_hash { "id" => id, "name" => name } end |
#initialize(hash) ⇒ Object
55 56 57 58 59 60 |
# File 'lib/rex/exploitation/opcodedb.rb', line 55 def initialize(hash) super @id = hash['id'].to_i @name = hash['name'] end |