Class: Rex::Post::HWBridge::Extension

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/post/hwbridge/extension.rb

Overview

Base class for all extensions that holds a reference to the client context that they are part of. Each extension also has a defined name through which it is referenced.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, name) ⇒ Extension

Initializes the client and name attributes.



19
20
21
22
# File 'lib/rex/post/hwbridge/extension.rb', line 19

def initialize(client, name)
  self.client = client
  self.name   = name
end

Instance Attribute Details

#clientObject (protected)

:nodoc:



29
30
31
# File 'lib/rex/post/hwbridge/extension.rb', line 29

def client
  @client
end

#nameObject

The name of the extension.



27
28
29
# File 'lib/rex/post/hwbridge/extension.rb', line 27

def name
  @name
end