Class: Yaks::Mapper::Form::DynamicField

Inherits:
Object
  • Object
show all
Defined in:
lib/yaks/mapper/form/dynamic_field.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(_opts = nil, &block) ⇒ Object



7
8
9
# File 'lib/yaks/mapper/form/dynamic_field.rb', line 7

def self.create(_opts = nil, &block)
  new(block: block)
end

Instance Method Details

#to_resource_fields(mapper) ⇒ Object



11
12
13
# File 'lib/yaks/mapper/form/dynamic_field.rb', line 11

def to_resource_fields(mapper)
  Config.build_with_object(mapper.object, &block).to_resource_fields(mapper)
end