Sha256: f09a5e23116c2275ed37d197cd63ed5774be1caa7cfe6bc81d72c5fd6548cc1d
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 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 force_utf8 :name force_utf8 :address def active? self.online == 'A' end def to_s "<Station##{self.id}:#{self.name}, #{self.available}/#{self.size}>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bikepoa-tools-0.4.0 | lib/bikepoa/station.rb |
bikepoa-tools-0.3.1 | lib/bikepoa/station.rb |