Sha256: fe016f729b024a960fded43ec46f75d8f1d009af83f774464ba01ce838bf2bbe

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  module Presenters
    module System
      # Shapes a system signal record for serialization.
      class Signal
        def initialize record
          @record = record
        end

        def id = record.number

        def label = record.name

        private

        attr_reader :record
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pennyworth-17.8.0 lib/pennyworth/presenters/system/signal.rb
pennyworth-17.7.0 lib/pennyworth/presenters/system/signal.rb
pennyworth-17.6.0 lib/pennyworth/presenters/system/signal.rb
pennyworth-17.5.0 lib/pennyworth/presenters/system/signal.rb
pennyworth-17.4.1 lib/pennyworth/presenters/system/signal.rb
pennyworth-17.4.0 lib/pennyworth/presenters/system/signal.rb