Sha256: 700eb7d1637787c088795ea4f5ac1807236445501b1f172093ea1fad1b3133a9

Contents?: true

Size: 779 Bytes

Versions: 7

Compression:

Stored size: 779 Bytes

Contents

module Ecoportal
  module API
    class V2
      class Page
        class Component
          class File < 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 :file_size, :content_type, :token, read_only: true
            passthrough :file_container_id
            passdate    :file_update_at, read_only: true

            def to_s
              file_container_id
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ecoportal-api-v2-0.8.27 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-0.8.26 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-0.8.25 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-0.8.24 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-0.8.23 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-0.8.22 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-0.8.21 lib/ecoportal/api/v2/page/component/file.rb