Class: HWAddr::Database::Company::Range

Inherits:
HWAddr
  • Object
show all
Defined in:
lib/hwaddr/database.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from HWAddr

#==, #=~, #broadcast?, #group?, #hash, #inspect, #productor, #to_s, valid?

Constructor Details

#initialize(company, range, address = nil) ⇒ Range

Returns a new instance of Range.



25
26
27
28
29
30
# File 'lib/hwaddr/database.rb', line 25

def initialize (company, range, address = nil)
	super(range)

	@company = company
	@address = address
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



23
24
25
# File 'lib/hwaddr/database.rb', line 23

def address
  @address
end

#companyObject (readonly)

Returns the value of attribute company.



23
24
25
# File 'lib/hwaddr/database.rb', line 23

def company
  @company
end