Class: MBTA::HeavyRail::Trip

Inherits:
Object
  • Object
show all
Defined in:
lib/mbta/heavy_rail/trip.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#announcementsObject

Returns the value of attribute announcements.



5
6
7
# File 'lib/mbta/heavy_rail/trip.rb', line 5

def announcements
  @announcements
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/mbta/heavy_rail/trip.rb', line 4

def id
  @id
end

#lineObject (readonly)

Returns the value of attribute line.



4
5
6
# File 'lib/mbta/heavy_rail/trip.rb', line 4

def line
  @line
end