Class: Vernier::Output::FileListing::SamplesByLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/vernier/output/file_listing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSamplesByLocation

Returns a new instance of SamplesByLocation.



11
12
13
# File 'lib/vernier/output/file_listing.rb', line 11

def initialize
  @self = @total = 0
end

Instance Attribute Details

#selfObject

Returns the value of attribute self.



10
11
12
# File 'lib/vernier/output/file_listing.rb', line 10

def self
  @self
end

#totalObject

Returns the value of attribute total.



10
11
12
# File 'lib/vernier/output/file_listing.rb', line 10

def total
  @total
end

Instance Method Details

#+(other) ⇒ Object



15
16
17
18
19
20
# File 'lib/vernier/output/file_listing.rb', line 15

def +(other)
  ret = SamplesByLocation.new
  ret.self = @self + other.self
  ret.total = @total + other.total
  ret
end