Sha256: 8c6c9c8977e9e69edf26b2a016d9c0d90f0f61ff11291dfaa4953470bee302f8
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
# encoding: utf-8 # module BikePOA class Station < Hashie::Dash include Helpers::ForceField property :id property :size property :available property :name property :address property :online property :status force_integer :id force_integer :size force_integer :available def active? self.online == 'A' end def to_s "<Station##{self.id}:#{self.name}, #{self.available}/#{self.size}>" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bikepoa-tools-0.3.0 | lib/bikepoa/station.rb |
bikepoa-tools-0.2.0 | lib/bikepoa/station.rb |
bikepoa-tools-0.1.0 | lib/bikepoa/station.rb |