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.
74 75 76 |
# File 'lib/rex/exploitation/opcodedb.rb', line 74 def id @id end |
#name ⇒ Object (readonly)
The unique name for this entry.
78 79 80 |
# File 'lib/rex/exploitation/opcodedb.rb', line 78 def name @name end |
Instance Method Details
#filter_hash ⇒ Object
Fields that could possibly be filtered on for this database entry.
64 65 66 67 68 69 |
# File 'lib/rex/exploitation/opcodedb.rb', line 64 def filter_hash { "id" => id, "name" => name } end |
#initialize(hash) ⇒ Object
54 55 56 57 58 59 |
# File 'lib/rex/exploitation/opcodedb.rb', line 54 def initialize(hash) super @id = hash['id'].to_i @name = hash['name'] end |