Class: HWAddr::Database::Company::Range
- Defined in:
- lib/hwaddr/database.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#company ⇒ Object
readonly
Returns the value of attribute company.
Instance Method Summary collapse
-
#initialize(company, range, address = nil) ⇒ Range
constructor
A new instance of Range.
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
23 24 25 |
# File 'lib/hwaddr/database.rb', line 23 def address @address end |
#company ⇒ Object (readonly)
Returns the value of attribute company.
23 24 25 |
# File 'lib/hwaddr/database.rb', line 23 def company @company end |