Sha256: c6832c808bdb0bb7bcf65f6ae4761f373f2c723646621fb7b081976d9951f616
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
# API から取得したハッシュからインスタンスを生成するための Factory Pattern のクラス(メタクラス) class TokyoMetro::Factory::Generate::Api::StationFacility::Info::BarrierFree::Info::Facility::Escalator::ServiceDetail::Info < TokyoMetro::Factory::Generate::Api::StationFacility::Info::BarrierFree::Info::ServiceDetail::Info include ::TokyoMetro::ClassNameLibrary::Api::StationFacility::BarrierFree::Escalator def variables super + [ direction_of_escalator ] end def self.instance_class escalator_service_detail_info_class end private def direction_of_escalator self.class.escalator_service_detail_direction_class.generate_from_hash( @hash[ "ug:direction" ] ) 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/facility/escalator/service_detail/info.rb |