Method: NicInfo::Ip#get_cn
- Defined in:
- lib/nicinfo/ip.rb
#get_cn ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/nicinfo/ip.rb', line 71 def get_cn handle = NicInfo::get_handle @objectclass if !handle startAddress = NicInfo.get_startAddress @objectclass handle << startAddress if startAddress endAddress = NicInfo.get_endAddress @objectclass handle << " - " if startAddress and endAddress handle << endAddress if endAddress end return handle if handle return "(unidentifiable network #{object_id})" end |