@@ -148,7 +148,7 @@ def parse_get_request data
148
148
# data[2] is error_index, always zero.
149
149
send :error_status= , 0
150
150
send :error_index= , 0
151
- data [ 3 ] . each do |n , v |
151
+ data [ 3 ] . each do |n , v |
152
152
# A variable-binding, of which there may be several,
153
153
# consists of an OID and a BER null.
154
154
# We're ignoring the null, we might want to verify it instead.
@@ -166,7 +166,7 @@ def parse_get_response data
166
166
send :request_id= , data [ 0 ] . to_i
167
167
send :error_status= , data [ 1 ] . to_i
168
168
send :error_index= , data [ 2 ] . to_i
169
- data [ 3 ] . each do |n , v |
169
+ data [ 3 ] . each do |n , v |
170
170
# A variable-binding, of which there may be several,
171
171
# consists of an OID and a BER null.
172
172
# We're ignoring the null, we might want to verify it instead.
@@ -177,7 +177,7 @@ def parse_get_response data
177
177
178
178
179
179
def version = ver
180
- unless [ 0 , 2 ] . include? ( ver )
180
+ unless [ 0 , 2 ] . include? ( ver )
181
181
raise Error . new ( "unknown snmp-version: #{ ver } " )
182
182
end
183
183
@version = ver
@@ -227,7 +227,7 @@ def pdu_to_ber_string
227
227
error_status . to_ber ,
228
228
error_index . to_ber ,
229
229
[
230
- @variables . map do |n , v |
230
+ @variables . map do |n , v |
231
231
[ n . to_ber_oid , Net ::BER ::BerIdentifiedNull . new . to_ber ] . to_ber_sequence
232
232
end
233
233
] . to_ber_sequence
@@ -238,7 +238,7 @@ def pdu_to_ber_string
238
238
error_status . to_ber ,
239
239
error_index . to_ber ,
240
240
[
241
- @variables . map do |n , v |
241
+ @variables . map do |n , v |
242
242
[ n . to_ber_oid , Net ::BER ::BerIdentifiedNull . new . to_ber ] . to_ber_sequence
243
243
end
244
244
] . to_ber_sequence
@@ -249,7 +249,7 @@ def pdu_to_ber_string
249
249
error_status . to_ber ,
250
250
error_index . to_ber ,
251
251
[
252
- @variables . map do |n , v |
252
+ @variables . map do |n , v |
253
253
[ n . to_ber_oid , v . to_ber ] . to_ber_sequence
254
254
end
255
255
] . to_ber_sequence
0 commit comments