Class: DHCP::Client
- Inherits:
-
Object
- Object
- DHCP::Client
- Defined in:
- lib/dhcp/client.rb
Instance Attribute Summary collapse
-
#mac ⇒ Object
Returns the value of attribute mac.
Instance Method Summary collapse
- #_parse_packet(data) ⇒ Object
-
#initialize(opt = {}) ⇒ Client
constructor
A new instance of Client.
- #run ⇒ Object
Constructor Details
#initialize(opt = {}) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 |
# File 'lib/dhcp/client.rb', line 8 def initialize(opt={}) @mac = opt[:mac] @sock = opt[:sock] @lease = nil end |
Instance Attribute Details
#mac ⇒ Object
Returns the value of attribute mac.
13 14 15 |
# File 'lib/dhcp/client.rb', line 13 def mac @mac end |