Sha256: f0e6a62056eab910b57b66a9d53711cd945b9c844dcf7478f2a70315fe642da0
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
# API から取得したハッシュからインスタンスを生成するための Factory Pattern のクラス(メタクラス) class TokyoMetro::Factory::Generate::Api::StationFacility::Info::BarrierFree::Info::ServiceDetail::Info < TokyoMetro::Factory::Generate::Api::MetaClass::Info::NotOnTheTopLayer include ::TokyoMetro::ClassNameLibrary::Api::StationFacility include ::TokyoMetro::ClassNameLibrary::Api::StationFacility::BarrierFree::MetaClass def variables [ service_start_time , service_end_time , operation_days ] end private def service_start_time @hash[ "ugsrv:serviceStartTime" ].with_default_value( "始発" ) end def service_end_time @hash[ "ugsrv:serviceEndTime" ].with_default_value( "終車時" ) end def operation_days @hash[ "odpt:operationDays" ] end def self.instance_class barrier_free_service_detail_info_class end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/generate/api/station_facility/info/barrier_free/info/service_detail/info.rb |