Sha256: 05245f5595f9776d877e7d565afc4e4f2169204fa2303f8b2be3f2efa980c904

Contents?: true

Size: 610 Bytes

Versions: 6

Compression:

Stored size: 610 Bytes

Contents

module Ecoportal
  module API
    class V2
      class Page
        class Permit < Ecoportal::API::Common::Content::DoubleModel
          class << self
            def new_doc
              {
                "id"         => new_uuid,
                "editable"   => false
              }
            end
          end

          passkey     :id
          passforced  :patch_ver, default: 1
          passthrough :user_id, :user_name
          passthrough :editable
          embeds_one  :flags, klass: "Ecoportal::API::V2::Page::PermissionFlags"
        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/permit.rb
ecoportal-api-v2-2.0.11 lib/ecoportal/api/v2/page/permit.rb
ecoportal-api-v2-2.0.10 lib/ecoportal/api/v2/page/permit.rb
ecoportal-api-v2-2.0.9 lib/ecoportal/api/v2/page/permit.rb
ecoportal-api-v2-2.0.8 lib/ecoportal/api/v2/page/permit.rb
ecoportal-api-v2-2.0.7 lib/ecoportal/api/v2/page/permit.rb