Class: SnmpDumper::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/config.rb

Constant Summary collapse

SNMP_VERSIONS =
{"1" => :SNMPv1, "2c" => :SNMPv2c, "3" => :SNMPv3}
DEFAULT_PORT =
161
DEFAULT_INTERVAL =
10
DEFAULT_WALKS =
3
DEFAULT_COMMUNITY =
"public"
DEFAULT_CATEGORY =
"Unknown Category"
DEFAULT_DUMPER =
"JalasoftDumper"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Config

Returns a new instance of Config.



19
20
21
# File 'lib/config.rb', line 19

def initialize(argv)
  parse(argv)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



17
18
19
# File 'lib/config.rb', line 17

def options
  @options
end