Class: Host

Inherits:
Object
  • Object
show all
Defined in:
lib/parse_dhcp/host.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_addressObject (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_ethernetObject (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

#hostObject (readonly)

Returns the value of attribute host.



4
5
6
# File 'lib/parse_dhcp/host.rb', line 4

def host
  @host
end