Class: Pennyworth::Presenters::System::Signal
- Inherits:
-
Object
- Object
- Pennyworth::Presenters::System::Signal
- Defined in:
- lib/pennyworth/presenters/system/signal.rb
Overview
Shapes a system signal record for serialization.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(record) ⇒ Signal
constructor
A new instance of Signal.
- #label ⇒ Object
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
#id ⇒ Object
12 |
# File 'lib/pennyworth/presenters/system/signal.rb', line 12 def id = record.number |
#label ⇒ Object
14 |
# File 'lib/pennyworth/presenters/system/signal.rb', line 14 def label = record.name |