Class: TokyoMetro::Api::RailwayLine::List

Inherits:
MetaClass::Hybrid::List show all
Includes:
ClassNameLibrary::Api::RailwayLine, Modules::Common::ToFactory::Seed::List
Defined in:
lib/tokyo_metro/api/railway_line/list.rb

Overview

各路線の情報の配列

Instance Method Summary collapse

Methods included from Modules::Common::ToFactory::Seed::Group

#seed

Methods inherited from MetaClass::Fundamental::List

#find_by_same_as

Instance Method Details

#sort_by_railway_line_orderObject



14
15
16
# File 'lib/tokyo_metro/api/railway_line/list.rb', line 14

def sort_by_railway_line_order
  self.class.new( self.sort_by { | railway_line | ::TokyoMetro::Static.railway_lines[ railway_line.same_as ].order } )
end

#to_strf(indent = 0) ⇒ String

インスタンスの情報を整形した文字列にして返すメソッド

Parameters:

  • indent (Integer (>=0) (defaults to: 0)

    ] インデントの幅

Returns:

  • (String)


10
11
12
# File 'lib/tokyo_metro/api/railway_line/list.rb', line 10

def to_strf( indent = 0 )
  super( indent , 3 )
end