Class: TokyoMetro::Api::Point::List

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

Overview

地物情報 ug:Poi の配列のクラス

Instance Method Summary collapse

Methods inherited from MetaClass::Fundamental::List

#find_by_same_as

Instance Method Details

#seedObject



9
10
11
# File 'lib/tokyo_metro/api/point/list.rb', line 9

def seed
  super( ::Station::Info.all , display_number: true )
end

#to_strf(indent = 0) ⇒ String

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

Parameters:

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

    ] インデントの幅

Returns:

  • (String)


16
17
18
# File 'lib/tokyo_metro/api/point/list.rb', line 16

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