Sha256: a183159f5311b7370d223eebfc1a08cc65244ac2dfb2c6ccd8412033a223e996

Contents?: true

Size: 849 Bytes

Versions: 6

Compression:

Stored size: 849 Bytes

Contents

module Ecoportal
  module API
    class V2
      class Page
        class Component
          class File < Ecoportal::API::Common::Content::DoubleModel
            class << self
              def new_doc
                {
                  "id"         => new_uuid,
                  "position"   => 99
                }
              end
            end

            passkey     :id
            passforced  :patch_ver, default: 1
            passthrough :position
            passthrough :label
            passthrough :file_size, :content_type, :token, read_only: true
            passthrough :file_container_id
            passdate    :file_update_at, read_only: true

            def to_s
              [label, file_container_id].join(" => ")
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecoportal-api-v2-2.0.12 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-2.0.11 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-2.0.10 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-2.0.9 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-2.0.8 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-2.0.7 lib/ecoportal/api/v2/page/component/file.rb