Class: Host
- Inherits:
-
Object
- Object
- Host
- Defined in:
- lib/parse_dhcp/host.rb
Instance Attribute Summary collapse
-
#fixed_address ⇒ Object
readonly
Returns the value of attribute fixed_address.
-
#hardware_ethernet ⇒ Object
readonly
Returns the value of attribute hardware_ethernet.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host, hardware_ethernet, fixed_address) ⇒ Host
constructor
A new instance of Host.
Constructor Details
#initialize(host, hardware_ethernet, fixed_address) ⇒ Host
Returns a new instance of Host.
6 7 8 9 10 |
# File 'lib/parse_dhcp/host.rb', line 6 def initialize(host, hardware_ethernet, fixed_address) @host = host @hardware_ethernet = hardware_ethernet @fixed_address = fixed_address end |
Instance Attribute Details
#fixed_address ⇒ Object (readonly)
Returns the value of attribute fixed_address.
4 5 6 |
# File 'lib/parse_dhcp/host.rb', line 4 def fixed_address @fixed_address end |
#hardware_ethernet ⇒ Object (readonly)
Returns the value of attribute hardware_ethernet.
4 5 6 |
# File 'lib/parse_dhcp/host.rb', line 4 def hardware_ethernet @hardware_ethernet end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
4 5 6 |
# File 'lib/parse_dhcp/host.rb', line 4 def host @host end |