class JsonFields::BaseStructure

Attributes

allow_blank[RW]

Public Class Methods

new(options) click to toggle source
# File lib/json_fields/base_structure.rb, line 9
def initialize(options)
  @allow_blank = options[:allow_blank] || false
end

Public Instance Methods

assemble(values) click to toggle source
# File lib/json_fields/base_structure.rb, line 17
def assemble(values)
  raise "assemble must be defined in the subclass"
end
template(object_name, method, options) click to toggle source
# File lib/json_fields/base_structure.rb, line 13
def template(object_name, method, options)
  raise "template must be defined in the subclass"
end