Sha256: 45b501eee0623c6798b92f1e42c78461829760c5d0ed7aed862a7ae1777bf1f1

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
junos-config-0.3.0 lib/junos-config/interface.rb
junos-config-0.2.0 lib/junos-config/interface.rb