Class: Pennyworth::Loaders::System::Signal
- Inherits:
-
Object
- Object
- Pennyworth::Loaders::System::Signal
- Defined in:
- lib/pennyworth/loaders/system/signal.rb
Overview
Loads an array of signal records.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(list: ::Signal.list, model: Models::System::Signal) ⇒ Signal
constructor
A new instance of Signal.
Constructor Details
Instance Method Details
#call ⇒ Object
13 |
# File 'lib/pennyworth/loaders/system/signal.rb', line 13 def call(*) = list.map { |name, number| model[number:, name:] } |