Class: Rex::Post::HWBridge::Extension
- Inherits:
-
Object
- Object
- Rex::Post::HWBridge::Extension
- 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.
Direct Known Subclasses
Rex::Post::HWBridge::Extensions::Automotive::Automotive, Rex::Post::HWBridge::Extensions::CustomMethods::CustomMethods, Rex::Post::HWBridge::Extensions::RFTransceiver::RFTransceiver, Rex::Post::HWBridge::Extensions::Zigbee::Zigbee
Instance Attribute Summary collapse
-
#client ⇒ Object
protected
:nodoc:.
-
#name ⇒ Object
The name of the extension.
Instance Method Summary collapse
-
#initialize(client, name) ⇒ Extension
constructor
Initializes the client and name attributes.
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
#client ⇒ Object (protected)
:nodoc:
29 30 31 |
# File 'lib/rex/post/hwbridge/extension.rb', line 29 def client @client end |
#name ⇒ Object
The name of the extension.
27 28 29 |
# File 'lib/rex/post/hwbridge/extension.rb', line 27 def name @name end |