Sha256: a4a28ab927790d685ec2243c642fa130628b7ba1abf8c91ba713bfd8fa7e0e50

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 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 :label
            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

2 entries across 2 versions & 1 rubygems

Version Path
ecoportal-api-v2-0.8.29 lib/ecoportal/api/v2/page/component/file.rb
ecoportal-api-v2-0.8.28 lib/ecoportal/api/v2/page/component/file.rb