Sha256: fd31b9797755ec51b53c60ce57ec001e8a2bed84f0777d58c619b6c029864e1c

Contents?: true

Size: 798 Bytes

Versions: 27

Compression:

Stored size: 798 Bytes

Contents

module Ecoportal
  module API
    class V2
      class Page
        class Component
          class Law < Common::Content::DoubleModel

            class << self
              def new_doc
                {
                  "id"         => new_uuid,
                  "weight"     => 999
                }
              end
            end

            passkey     :id
            passforced  :patch_ver, default: 1
            passthrough :title, :weight
            passthrough :content, :product
            passthrough :legislation, :category, :topic
            passdate    :updated_at, read_only: true

            def to_s
              [legislation, title, category, topic].join(" <:> ")
            end
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ecoportal-api-v2-0.9.3 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.9.2 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.9.1 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.8.33 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.8.32 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.8.31 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.8.30 lib/ecoportal/api/v2/page/component/law.rb