Sha256: 9b602754ae27723318c0fa1548f25237eae838f17edf5cfb0f144911715dc860

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

module JunosConfig
  module Security
    class Address
      attr_accessor :raw,
                    :config,
                    :name,
                    :ip
    
      def initialize(config, raw)
        @config = config
        @raw    = raw
        m = raw.match(/^\ {16}address (\S+)\ (\S+);/)
        @name = m[1]
        @ip = m[2]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
junos-config-0.3.0 lib/junos-config/security/address.rb