Class: BikePOA::Station

Inherits:
Hashie::Dash
  • Object
show all
Includes:
Helpers::ForceField
Defined in:
lib/bikepoa/station.rb

Instance Method Summary collapse

Methods included from Helpers::ForceField

#[]=, included

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/bikepoa/station.rb', line 22

def active?
  self.online == 'A'
end

#to_sObject



26
27
28
# File 'lib/bikepoa/station.rb', line 26

def to_s
  "<Station##{self.id}:#{self.name}, #{self.available}/#{self.size}>"
end