Class: Contrast::Agent::Reporting::Details::XxeMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/agent/reporting/details/xxe_match.rb

Overview

Matcher data for XXE rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_idxInteger

Returns:

  • (Integer)


13
14
15
# File 'lib/contrast/agent/reporting/details/xxe_match.rb', line 13

def end_idx
  @end_idx
end

#start_idxInteger

Returns:

  • (Integer)


11
12
13
# File 'lib/contrast/agent/reporting/details/xxe_match.rb', line 11

def start_idx
  @start_idx
end

Instance Method Details

#to_controlled_hashObject



15
16
17
18
19
20
# File 'lib/contrast/agent/reporting/details/xxe_match.rb', line 15

def to_controlled_hash
  {
      start: start_idx,
      end: end_idx
  }
end