Class: Kanrisuru::Core::IP::Parser::Version

Inherits:
Base
  • Object
show all
Defined in:
lib/kanrisuru/core/ip/parsers/version.rb

Class Method Summary collapse

Methods inherited from Base

ip_address_label_result_json, ip_address_label_result_parse, parse_address_info, parse_alias, parse_ip_maddr_name, parse_ip_row, parse_link, parse_rx, parse_tx, parse_valid

Class Method Details

.parse(command) ⇒ Object



8
9
10
# File 'lib/kanrisuru/core/ip/parsers/version.rb', line 8

def self.parse(command)
  command.to_s.split('ip utility, iproute2-ss')[1].to_i
end