Sha256: 6406f27c43df152ec28579bd8ed37690f2dd0523fac873aa19cc5905df80756c

Contents?: true

Size: 272 Bytes

Versions: 16

Compression:

Stored size: 272 Bytes

Contents

module Spina
  module Parts
    class Base
      include AttrJson::Model

      attr_json_config(unknown_key: :strip)

      attr_json :title, :string
      attr_json :name, :string

      def label
        content&.to_s
      end

      def content; end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spina-2.8.0 app/models/spina/parts/base.rb
spina-2.7.0 app/models/spina/parts/base.rb
spina-2.6.2 app/models/spina/parts/base.rb
spina-2.6.1 app/models/spina/parts/base.rb
spina-2.6.0 app/models/spina/parts/base.rb
spina-2.5.0 app/models/spina/parts/base.rb
spina-2.4.0 app/models/spina/parts/base.rb
spina-2.3.5 app/models/spina/parts/base.rb
spina-2.3.4 app/models/spina/parts/base.rb
spina-2.3.3 app/models/spina/parts/base.rb
spina-2.3.2 app/models/spina/parts/base.rb
spina-2.3.1 app/models/spina/parts/base.rb
spina-2.3.0 app/models/spina/parts/base.rb
spina-2.2.0 app/models/spina/parts/base.rb
spina-2.1.1 app/models/spina/parts/base.rb
spina-2.1.0 app/models/spina/parts/base.rb