Class: GoTransit::ServiceUpdate::Exceptions::Trip

Inherits:
ApiResource
  • Object
show all
Defined in:
lib/go_transit/resources/service_update/exceptions/trip.rb

Defined Under Namespace

Classes: Stop

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiResource

#initialize

Constructor Details

This class inherits a constructor from GoTransit::ApiResource

Instance Attribute Details

#is_cancelledObject

Returns the value of attribute is_cancelled.



3
4
5
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3

def is_cancelled
  @is_cancelled
end

#is_overrideObject

Returns the value of attribute is_override.



3
4
5
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3

def is_override
  @is_override
end

#stopsObject

Returns the value of attribute stops.



3
4
5
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3

def stops
  @stops
end

#trip_nameObject

Returns the value of attribute trip_name.



3
4
5
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3

def trip_name
  @trip_name
end

#trip_numberObject

Returns the value of attribute trip_number.



3
4
5
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 3

def trip_number
  @trip_number
end

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 6

def cancelled?
  is_cancelled.to_i.positive?
end

#override?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/go_transit/resources/service_update/exceptions/trip.rb', line 10

def override?
  is_override.to_i.positive?
end