Class: TokyoMetro::ApiProcessor::RealTimeInfos::ProvisionStatus::EachRailwayLine
- Inherits:
-
Object
- Object
- TokyoMetro::ApiProcessor::RealTimeInfos::ProvisionStatus::EachRailwayLine
- Defined in:
- lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb
Instance Attribute Summary collapse
-
#train_location_infos ⇒ Object
readonly
Returns the value of attribute train_location_infos.
-
#train_operation_infos ⇒ Object
readonly
Returns the value of attribute train_operation_infos.
Instance Method Summary collapse
-
#initialize(train_operation_infos: :provided, train_location_infos: :provided) ⇒ EachRailwayLine
constructor
A new instance of EachRailwayLine.
- #train_location_infos_are_not_provided! ⇒ Object
- #train_location_infos_provided? ⇒ Boolean
- #train_operation_infos_are_not_provided! ⇒ Object
- #train_operation_infos_are_not_provided? ⇒ Boolean
- #train_operation_infos_are_provided? ⇒ Boolean
Constructor Details
#initialize(train_operation_infos: :provided, train_location_infos: :provided) ⇒ EachRailwayLine
Returns a new instance of EachRailwayLine.
3 4 5 6 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 3 def initialize( train_operation_infos: :provided , train_location_infos: :provided ) @train_operation_infos = train_operation_infos @train_location_infos = train_location_infos end |
Instance Attribute Details
#train_location_infos ⇒ Object (readonly)
Returns the value of attribute train_location_infos.
9 10 11 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 9 def train_location_infos @train_location_infos end |
#train_operation_infos ⇒ Object (readonly)
Returns the value of attribute train_operation_infos.
8 9 10 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 8 def train_operation_infos @train_operation_infos end |
Instance Method Details
#train_location_infos_are_not_provided! ⇒ Object
27 28 29 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 27 def train_location_infos_are_not_provided! @train_location_infos = :not_provided end |
#train_location_infos_provided? ⇒ Boolean
19 20 21 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 19 def train_location_infos_provided? @train_location_infos == :provided end |
#train_operation_infos_are_not_provided! ⇒ Object
23 24 25 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 23 def train_operation_infos_are_not_provided! @train_operation_infos = :not_provided end |
#train_operation_infos_are_not_provided? ⇒ Boolean
15 16 17 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 15 def train_operation_infos_are_not_provided? !( train_operation_infos_are_provided? ) end |
#train_operation_infos_are_provided? ⇒ Boolean
11 12 13 |
# File 'lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb', line 11 def train_operation_infos_are_provided? @train_operation_infos == :provided end |