Skip to content
Browse files

Remove each_pair, this method does not exists in ruby 1.8.7 and 1.9.2…

… for array's
  • Loading branch information...
1 parent 73a7540 commit 04ba68e329552c75bb60b6c0fb2d43f3eac2e1b1 @xtr3me committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/snmp4em/requests/snmp_set_request.rb
View
2 lib/snmp4em/requests/snmp_set_request.rb
@@ -26,7 +26,7 @@ def initialize(sender, oids, args = {}) #:nodoc:
@responses = Hash.new
@pending_varbinds = SNMP::VarBindList.new()
- _oids.each_pair do |oid,value|
+ _oids.each do |oid,value|
if value.is_a? Integer
snmp_value = SNMP::Integer.new(value)
elsif value.is_a? String

0 comments on commit 04ba68e

Please sign in to comment.
Something went wrong with that request. Please try again.