Sha256: f34d8aea35e4292f80a1fc2efa83a817d2b98e90c5ba8095bd7a6328bfe2a595

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

Stored size: 1.2 KB

Contents

require "ldbws/response_types/base"
require "ldbws/response_types/formation"

module Ldbws::ResponseTypes
  # Represents a calling point in the LDBWS.
  #
  # === Properties
  # location_name:: the name of the station
  # crs:: the CRS of the station
  # st:: the scheduled time (as a Time object)
  # et:: the expected time (as a String)
  # at:: the actual time (as a string)
  # cancelled::
  # length::
  # detatch_front::
  # formation:: information about the formation of the train
  # adhoc_alerts::
  # cancel_reason::
  # delay_reason::
  # affected_by_diversion::
  # reroute_delay::
  # affected_by::
  class CallingPoint < Base
    property :location_name, String
    property :crs, String
    property :st, Time
    property :et, String
    property :at, String
    property :cancelled, Boolean, selector: "isCancelled"
    property :length, Integer
    property :detatch_front, Boolean, default: false
    property :formation, Formation
    collection :adhoc_alerts, "adhocAlertText", String
    property :cancel_reason, String
    property :delay_reason, String
    property :affected_by_diversion, Boolean, default: false
    property :reroute_delay, Integer, default: 0
    property :affected_by, String
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ldbws-1.0.3 lib/ldbws/response_types/calling_point.rb
ldbws-1.0.2 lib/ldbws/response_types/calling_point.rb
ldbws-1.0.1 lib/ldbws/response_types/calling_point.rb
ldbws-1.0.0 lib/ldbws/response_types/calling_point.rb