Class: MBTA::HeavyRail::Announcements::Base
- Inherits:
-
Object
- Object
- MBTA::HeavyRail::Announcements::Base
- Defined in:
- lib/mbta/heavy_rail/announcements/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#trip ⇒ Object
readonly
Returns the value of attribute trip.
Instance Method Summary collapse
-
#initialize(trip, platform, time) ⇒ Base
constructor
A new instance of Base.
- #type ⇒ Object
Constructor Details
#initialize(trip, platform, time) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/mbta/heavy_rail/announcements/base.rb', line 7 def initialize(trip, platform, time) @trip = trip @platform = platform @time = time end |
Instance Attribute Details
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
5 6 7 |
# File 'lib/mbta/heavy_rail/announcements/base.rb', line 5 def platform @platform end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
5 6 7 |
# File 'lib/mbta/heavy_rail/announcements/base.rb', line 5 def time @time end |
#trip ⇒ Object (readonly)
Returns the value of attribute trip.
5 6 7 |
# File 'lib/mbta/heavy_rail/announcements/base.rb', line 5 def trip @trip end |
Instance Method Details
#type ⇒ Object
13 14 15 |
# File 'lib/mbta/heavy_rail/announcements/base.rb', line 13 def type self.class.name.split('::').last.downcase.to_sym end |