Sha256: 987ca951e3a6a50463d6db3b319b021613daaa6c4dde479467e9b65c50b9777f

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 Bytes

Contents

module Wasserstand
  class Waterway
    class << self
      include Wasserstand::Finders

      def all
        Wasserstand.provider.waterways
      end
    end

    attr_reader :name, :levels

    def initialize(name)
      @name = name
      @levels = HashClod.new
    end

    def to_s
      name
    end

    def inspect
      "#<#{self.class.name}: #{name} (#{levels.size} levels)>"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wasserstand-0.0.11 lib/wasserstand/waterway.rb
wasserstand-0.0.10 lib/wasserstand/waterway.rb
wasserstand-0.0.9 lib/wasserstand/waterway.rb