Class: Pennyworth::Presenters::System::Signal

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

Overview

Shapes a system signal record for serialization.

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ Signal

Returns a new instance of Signal.



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

def initialize record
  @record = record
end

Instance Method Details

#idObject



12
# File 'lib/pennyworth/presenters/system/signal.rb', line 12

def id = record.number

#labelObject



14
# File 'lib/pennyworth/presenters/system/signal.rb', line 14

def label = record.name