Sha256: 3be35275fcfd9c9e14aece5e52f2ae158045f166031e5c09c9493919d7a41f7b

Contents?: true

Size: 403 Bytes

Versions: 20

Compression:

Stored size: 403 Bytes

Contents

module Spina
  module Parts
    class Attachment < Base
      attr_json :attachment_id, :integer, default: nil
      attr_json :signed_blob_id, :string, default: nil
      attr_json :filename, :string, default: ""

      def content
        self
      end

      def present?
        signed_blob_id.present?
      end
      
      def signed_id
        signed_blob_id
      end
      
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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