Class: TokyoMetro::ApiProcessor::RealTimeInfos::ProvisionStatus::EachRailwayLine

Inherits:
Object
  • Object
show all
Defined in:
lib/tokyo_metro/api_processor/real_time_infos/provision_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infosObject (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_infosObject (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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