Class: AxR::Scanner::Detection

Inherits:
Object
  • Object
show all
Defined in:
lib/axr/scanner/detection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, loc:, loc_num:) ⇒ Detection

Returns a new instance of Detection.



10
11
12
13
14
# File 'lib/axr/scanner/detection.rb', line 10

def initialize(name:, loc:, loc_num:)
  @name    = name
  @loc     = loc
  @loc_num = loc_num
end

Instance Attribute Details

#locObject (readonly)

Returns the value of attribute loc.



8
9
10
# File 'lib/axr/scanner/detection.rb', line 8

def loc
  @loc
end

#loc_numObject (readonly)

Returns the value of attribute loc_num.



8
9
10
# File 'lib/axr/scanner/detection.rb', line 8

def loc_num
  @loc_num
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/axr/scanner/detection.rb', line 8

def name
  @name
end