lib/junos-config/interface.rb in junos-config-0.1.0 vs lib/junos-config/interface.rb in junos-config-0.2.0

- old
+ new

@@ -1,11 +1,13 @@ module JunosConfig class Interface - attr_accessor :config, + attr_accessor :raw, + :config, :name - def initialize(config) + def initialize(config, raw) @config = config - @name = config.match(/^\ {4}(\S+)\ \{$/)[1] + @raw = raw + @name = raw.match(/^\ {4}(\S+)\ \{$/)[1] end end end