Class: Wasserstand::Waterway
- Inherits:
-
Object
- Object
- Wasserstand::Waterway
- Extended by:
- Finders
- Defined in:
- lib/wasserstand/waterway.rb
Instance Attribute Summary collapse
-
#levels ⇒ Object
readonly
Returns the value of attribute levels.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Waterway
constructor
A new instance of Waterway.
- #inspect ⇒ Object
- #to_s ⇒ Object
Methods included from Finders
Constructor Details
Instance Attribute Details
#levels ⇒ Object (readonly)
Returns the value of attribute levels.
11 12 13 |
# File 'lib/wasserstand/waterway.rb', line 11 def levels @levels end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/wasserstand/waterway.rb', line 11 def name @name end |
Class Method Details
.all ⇒ Object
6 7 8 |
# File 'lib/wasserstand/waterway.rb', line 6 def all Wasserstand.provider.waterways end |
Instance Method Details
#inspect ⇒ Object
22 23 24 |
# File 'lib/wasserstand/waterway.rb', line 22 def inspect "#<#{self.class.name}: #{name} (#{levels.size} levels)>" end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/wasserstand/waterway.rb', line 18 def to_s name end |