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-2.0.6 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-2.0.5 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-2.0.4 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-2.0.3 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-2.0.2 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-2.0.1 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-2.0.0 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.8 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.7 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.6 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.5 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.4 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.3 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.2 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.1.1 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-1.0.1 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.9.7 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.9.6 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.9.5 lib/ecoportal/api/v2/page/component/law.rb
ecoportal-api-v2-0.9.4 lib/ecoportal/api/v2/page/component/law.rb