Sha256: ea006c03b3e4013fcc4ac12885335ca77cc246230222c74de2665446bc4c3c8a

Contents?: true

Size: 281 Bytes

Versions: 6

Compression:

Stored size: 281 Bytes

Contents

module Spina
  module Parts
    class Base
      include AttrJson::Model

      attr_json_config(unknown_key: :strip)

      attr_json :name, :string
      
      attr_accessor :title, :hint

      def label
        content&.to_s
      end

      def content; end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spina-2.12.0 app/models/spina/parts/base.rb
spina-2.11.0 app/models/spina/parts/base.rb
spina-2.10.0 app/models/spina/parts/base.rb
spina-2.9.1 app/models/spina/parts/base.rb
spina-2.9.0 app/models/spina/parts/base.rb
spina-2.8.1 app/models/spina/parts/base.rb