Class: TokyoMetro::Factory::Generate::Api::StationFacility::Info::Platform::Info

Inherits:
MetaClass::Info::NotOnTheTopLayer show all
Includes:
ClassNameLibrary::Api::StationFacility, MetaClass::Info::ConvertAndSetArrayData::ModuleForMethod
Defined in:
lib/tokyo_metro/factory/generate/api/station_facility/info/platform/info.rb

Overview

API から取得したハッシュからインスタンスを生成するための Factory Pattern のクラス(メタクラス)

Defined Under Namespace

Modules: BarrierFree, BarrierFreeAndSurroundingArea, Info, SurroundingArea, Transfer

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MetaClass::Info::NotOnTheTopLayer

#initialize

Methods inherited from MetaClass::Info::Fundamental

#generate, #initialize, process, #to_check_validity?

Constructor Details

This class inherits a constructor from TokyoMetro::Factory::Generate::Api::MetaClass::Info::NotOnTheTopLayer

Class Method Details

.instance_classObject



14
15
16
# File 'lib/tokyo_metro/factory/generate/api/station_facility/info/platform/info.rb', line 14

def self.instance_class
  platform_info_class
end

Instance Method Details

#variablesObject



7
8
9
10
11
12
# File 'lib/tokyo_metro/factory/generate/api/station_facility/info/platform/info.rb', line 7

def variables
  ary_1 = [ "odpt:railway" , "odpt:carComposition" , "odpt:carNumber" , "odpt:railDirection" ].map { | key | @hash[ key ] }
  ary_2 = [ transfer_info , barrier_free , surrounding_area ]

  ary_1 + ary_2
end