Class: BikePOA::Station
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- BikePOA::Station
- Includes:
- Helpers::ForceField
- Defined in:
- lib/bikepoa/station.rb
Instance Method Summary collapse
Methods included from Helpers::ForceField
Instance Method Details
#active? ⇒ Boolean
22 23 24 |
# File 'lib/bikepoa/station.rb', line 22 def active? self.online == 'A' end |
#to_s ⇒ Object
26 27 28 |
# File 'lib/bikepoa/station.rb', line 26 def to_s "<Station##{self.id}:#{self.name}, #{self.available}/#{self.size}>" end |