Class: Icss::TargetListFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/icss/protocol/target.rb

Overview

Instantiates an array of target objects

Class Method Summary collapse

Class Method Details

.receive(target_info_list, target_name) ⇒ Object



7
8
9
10
# File 'lib/icss/protocol/target.rb', line 7

def self.receive target_info_list, target_name
  klass = "Icss::#{target_name.to_s.camelize}Target".constantize
  target_info_list.map{|target_info| klass.receive(target_info)}
end