class TripSpark::Pattern

Public Instance Methods

stops() click to toggle source

Return only the pattern points of this pattern that have the type `BusStop`

# File lib/tripspark_api/models/pattern.rb, line 32
def stops
  @stops ||= pattern_point_list.select{ |point| point.type == "BusStop" }
end
waypoints() click to toggle source

Return only the pattern points of this pattern that have the type `WayPoint`

# File lib/tripspark_api/models/pattern.rb, line 37
def waypoints
  @waypoints ||= pattern_point_list.select{ |point| point.type == "WayPoint" }
end