Skip to content

Commit

Permalink
Make error_information method private
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryb committed Jan 7, 2015
1 parent bbd5953 commit bc58300
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/snmpjr/session_v2c.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ def send pdu, target
end
end

def error_information pdu, target
"#{target.address}, OIDs: #{pdu.to_array.map {|binding| binding.oid.to_s }.inspect}"
end

def close
@snmp.close
end
Expand All @@ -46,6 +42,9 @@ def construct_response variable_binding
end
end

def error_information pdu, target
"#{target.address}, OIDs: #{pdu.to_array.map {|binding| binding.oid.to_s }.inspect}"
end
end

class TargetTimeoutError < StandardError
Expand Down

0 comments on commit bc58300

Please sign in to comment.