lib/ecoportal/api/v2/page/component/selection_option.rb in ecoportal-api-oozes-0.5.7 vs lib/ecoportal/api/v2/page/component/selection_option.rb in ecoportal-api-oozes-0.5.8
- old
+ new
@@ -2,9 +2,18 @@
module API
class V2
class Page
class Component
class SelectionOption < Common::Content::DoubleModel
+ class << self
+ def new_doc
+ {
+ "id" => new_uuid,
+ "weight" => 9999
+ }
+ end
+ end
+
passkey :id
passthrough :patch_ver, :name, :value
passthrough :weight, :selected
end
end