Class: Snmpjr::Configuration
- Inherits:
-
Object
- Object
- Snmpjr::Configuration
- Defined in:
- lib/snmpjr/configuration.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#max_oids_per_request ⇒ Object
Returns the value of attribute max_oids_per_request.
-
#port ⇒ Object
Returns the value of attribute port.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/snmpjr/configuration.rb', line 5 def initialize @port = 161 @retries = 0 @timeout = 5000 @max_oids_per_request = 20 end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/snmpjr/configuration.rb', line 3 def host @host end |
#max_oids_per_request ⇒ Object
Returns the value of attribute max_oids_per_request.
3 4 5 |
# File 'lib/snmpjr/configuration.rb', line 3 def max_oids_per_request @max_oids_per_request end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/snmpjr/configuration.rb', line 3 def port @port end |
#retries ⇒ Object
Returns the value of attribute retries.
3 4 5 |
# File 'lib/snmpjr/configuration.rb', line 3 def retries @retries end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/snmpjr/configuration.rb', line 3 def timeout @timeout end |