class Ecoportal::API::V2::Page::Component::SelectionOption

Public Class Methods

new_doc() click to toggle source
# File lib/ecoportal/api/v2/page/component/selection_option.rb, line 9
def new_doc
  {
    "id"         => new_uuid,
    "weight"     => 9999
  }
end

Public Instance Methods

numeric!() { |value| ... } click to toggle source
# File lib/ecoportal/api/v2/page/component/selection_option.rb, line 23
def numeric!
  self.value = block_given?? yield(value) : value.to_i
end
text!() { |value| ... } click to toggle source
# File lib/ecoportal/api/v2/page/component/selection_option.rb, line 27
def text!
  self.value = block_given?? yield(value) : value.to_s
end