Sha256: 577e4489e3815cd138d8e0ee781abb9d4357422cf7d3b086e16b7bf35a83161c

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module PgSerializable
  module Nodes
    class Attribute < Base
      attr_reader :column_name, :klass, :label, :prc

      def initialize(klass, column_name, label: nil, &prc)
        @klass = klass
        @column_name = column_name
        @label = label || column_name
        @prc = prc if block_given?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_serializable-1.0.1 lib/pg_serializable/nodes/attribute.rb
pg_serializable-1.0.0 lib/pg_serializable/nodes/attribute.rb