Class: TokyoMetro::Static::Station::InEachRailwayLine

Inherits:
Fundamental::Hash show all
Includes:
ClassNameLibrary::Static::Station, Modules::Common::ToFactory::Seed::Hash, Modules::Static::ToFactory::Generate::Group::OneYaml
Defined in:
lib/tokyo_metro/static/station/in_each_railway_line.rb

Overview

個別の路線の、複数の駅情報を扱うクラス(ハッシュ)

Defined Under Namespace

Classes: Info

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Modules::Static::Hash::DefineTest

#define_test

Class Method Details

.factory_for_generating_from_saved_file_for_this_classObject



16
17
18
# File 'lib/tokyo_metro/static/station/in_each_railway_line.rb', line 16

def self.factory_for_generating_from_saved_file_for_this_class
  factory_for_generating_from_each_saved_file
end

.factory_for_seeding_this_classObject



20
21
22
# File 'lib/tokyo_metro/static/station/in_each_railway_line.rb', line 20

def self.factory_for_seeding_this_class
  factory_for_seeding_subhash
end

Instance Method Details

#seed(railway_line, indent) ⇒ Object



12
13
14
# File 'lib/tokyo_metro/static/station/in_each_railway_line.rb', line 12

def seed( railway_line , indent )
  super( railway_line , not_on_the_top_layer: true , indent: indent )
end

#stationsObject



8
9
10
# File 'lib/tokyo_metro/static/station/in_each_railway_line.rb', line 8

def stations
  self.keys
end