Sha256: a824a974ad005e676213bfd6763479da1d078904919be6c741de213542f5d2c0
Contents?: true
Size: 339 Bytes
Versions: 4
Compression:
Stored size: 339 Bytes
Contents
module Wasserstand # # see http://www.pegelonline.wsv.de/gast/hilfe#hilfe_pegelparameter # class Level # Pegel attr_reader :id attr_accessor :name, :km, :measurements def initialize(id) @id = id @measurements = [] end def to_s "#{@name} (km #{@km}): #{@measurements.last}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wasserstand-0.0.4 | lib/wasserstand/level.rb |
wasserstand-0.0.3 | lib/wasserstand/level.rb |
wasserstand-0.0.2 | lib/wasserstand/level.rb |
wasserstand-0.0.1 | lib/wasserstand/level.rb |