Class: Pennyworth::Loaders::System::Signal

Inherits:
Object
  • Object
show all
Defined in:
lib/pennyworth/loaders/system/signal.rb

Overview

Loads an array of signal records.

Instance Method Summary collapse

Constructor Details

#initialize(list: ::Signal.list, model: Models::System::Signal) ⇒ Signal

Returns a new instance of Signal.



8
9
10
11
# File 'lib/pennyworth/loaders/system/signal.rb', line 8

def initialize list: ::Signal.list, model: Models::System::Signal
  @list = list
  @model = model
end

Instance Method Details

#callObject



13
# File 'lib/pennyworth/loaders/system/signal.rb', line 13

def call(*) = list.map { |name, number| model[number:, name:] }