Class: TokyoMetro::Factory::Seed::Common::Info

Inherits:
Object
  • Object
show all
Includes:
SetOptionalVariables
Defined in:
lib/tokyo_metro/factory/seed/common/info.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info, *args, get_id: false) ⇒ Info

Returns a new instance of Info.



5
6
7
8
9
# File 'lib/tokyo_metro/factory/seed/common/info.rb', line 5

def initialize( info , *args , get_id: false )
  @info = info
  set_optional_variables( args )
  @get_id = get_id
end

Class Method Details

.process(*variables) ⇒ Object



16
17
18
# File 'lib/tokyo_metro/factory/seed/common/info.rb', line 16

def self.process( *variables )
  self.new( *variables ).seed
end

Instance Method Details

#seedObject



11
12
13
14
# File 'lib/tokyo_metro/factory/seed/common/info.rb', line 11

def seed
  seed_main
  seed_optional_infos
end