Class: MBTA::HeavyRail::Trip
- Inherits:
-
Object
- Object
- MBTA::HeavyRail::Trip
- Defined in:
- lib/mbta/heavy_rail/trip.rb
Instance Attribute Summary collapse
-
#announcements ⇒ Object
Returns the value of attribute announcements.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(line, id) ⇒ Trip
constructor
A new instance of Trip.
Constructor Details
#initialize(line, id) ⇒ Trip
Returns a new instance of Trip.
7 8 9 10 11 |
# File 'lib/mbta/heavy_rail/trip.rb', line 7 def initialize(line, id) @line = line @id = id @announcements = [] end |
Instance Attribute Details
#announcements ⇒ Object
Returns the value of attribute announcements.
5 6 7 |
# File 'lib/mbta/heavy_rail/trip.rb', line 5 def announcements @announcements end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/mbta/heavy_rail/trip.rb', line 4 def id @id end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
4 5 6 |
# File 'lib/mbta/heavy_rail/trip.rb', line 4 def line @line end |