Method: Rex::Exploitation::OpcodeDb::Type#initialize

Defined in:
lib/rex/exploitation/opcodedb.rb

#initialize(hash) ⇒ Type

Returns a new instance of Type.



375
376
377
378
379
380
381
382
# File 'lib/rex/exploitation/opcodedb.rb', line 375

def initialize(hash)
  super

  @opcodes   = (hash['opcodes']) ? hash['opcodes'].to_i : 0
  @meta_type = MetaType.create(hash['meta_type']) if (hash['meta_type'])
  @group     = Group.create(hash['group']) if (hash['group'])
  @arch      = hash['arch']
end