Sha256: ab71daed3a0e0cfd2410b2b793a01c040c2a98032e3fb8791e726a4b691aa52b

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

# API から取得したハッシュからインスタンスを生成するための Factory Pattern のクラス(メタクラス)
class TokyoMetro::Factory::Generate::Api::RailwayLine::Info::TravelTime::Info < TokyoMetro::Factory::Generate::Api::MetaClass::Info::NotOnTheTopLayer

  def variables
    [ "odpt:fromStation" , "odpt:toStation" , "odpt:necessaryTime" ].map { | str | @hash[ str ] }
  end

  def self.instance_class
    ::TokyoMetro::Api::RailwayLine::Info::TravelTime::Info
  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/railway_line/info/travel_time/info.rb