Sha256: bb478af7840e457f33bd736b3daf1475933e7b352d8274b73a664ae860f20457

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

class TokyoMetro::Api::StationTimetable::Info::Fundamental::List < Array

  include ::TokyoMetro::ClassNameLibrary::Api::StationTimetable
  include ::TokyoMetro::Modules::Common::ToFactory::Seed::List

  def seed( *args )
    super(
      *args ,
      indent: 1 ,
      not_on_the_top_layer: true ,
      display_number: false ,
      no_display: true
    )
  end

  def self.factory_for_seeding_this_class
    factory_for_seeding_fundamental_list
  end

  [ :stations , :railway_lines , :operators , :railway_directions ].each do | method_name |
    eval <<-DEF
      def #{ method_name }
        self.map( &:#{ method_name } ).flatten
      end
    DEF
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/api/station_timetable/info/fundamental/list.rb