Sha256: d4671b2d833cab27e28615f8c37a609ffc2de3fa5739030e1e78855f59721232

Contents?: true

Size: 357 Bytes

Versions: 6

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  module Presenters
    # Shapes an encoding record for serialization.
    class Encoding
      def initialize record
        @record = record
      end

      def id = record.name

      def label = record.name

      def aliases = record.aliases

      private

      attr_reader :record
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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