Sha256: bc41498874b9cf0c1e5e0401e9c0acec314bf12dd026ad777a80ccba8ce39385

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

module MBTA
  module HeavyRail
    module Announcements
      class Base
        attr_reader :trip, :platform, :time

        def initialize(trip, platform, time)
          @trip = trip
          @platform = platform
          @time = time
        end

        def type
          self.class.name.split('::').last.downcase.to_sym
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mbta-0.1.4 lib/mbta/heavy_rail/announcements/base.rb
mbta-0.1.3 lib/mbta/heavy_rail/announcements/base.rb
mbta-0.1.1 lib/mbta/heavy_rail/announcements/base.rb