Class: Vernier::Output::FileListing::SamplesByLocation
- Inherits:
-
Object
- Object
- Vernier::Output::FileListing::SamplesByLocation
- Defined in:
- lib/vernier/output/file_listing.rb
Instance Attribute Summary collapse
-
#self ⇒ Object
Returns the value of attribute self.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
- #+(other) ⇒ Object
-
#initialize ⇒ SamplesByLocation
constructor
A new instance of SamplesByLocation.
Constructor Details
#initialize ⇒ SamplesByLocation
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
#self ⇒ Object
Returns the value of attribute self.
10 11 12 |
# File 'lib/vernier/output/file_listing.rb', line 10 def self @self end |
#total ⇒ Object
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 |