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

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

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

#actual_timeObject

Returns the value of attribute actual_time.



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

def actual_time
  @actual_time
end

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#is_cancelledObject

Returns the value of attribute is_cancelled.



3
4
5
# File 'lib/go_transit/resources/service_update/exceptions/trip/stop.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/stop.rb', line 3

def is_override
  @is_override
end

#is_stoppingObject

Returns the value of attribute is_stopping.



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

def is_stopping
  @is_stopping
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#orderObject

Returns the value of attribute order.



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

def order
  @order
end

#sch_arrivalObject

Returns the value of attribute sch_arrival.



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

def sch_arrival
  @sch_arrival
end

#sch_departureObject

Returns the value of attribute sch_departure.



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

def sch_departure
  @sch_departure
end

#service_typeObject

Returns the value of attribute service_type.



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

def service_type
  @service_type
end

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


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

def cancelled?
  is_cancelled.to_i.positive?
end

#override?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/go_transit/resources/service_update/exceptions/trip/stop.rb', line 15

def override?
  is_override.to_i.positive?
end

#stopping?Boolean

Returns:

  • (Boolean)


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

def stopping?
  is_stopping.to_i.positive?
end