Class: Olivander::Resources::ResourceFields::ResourceField

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/concerns/olivander/resources/auto_form_attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sym, type, editable, on_show, on_form, _group) ⇒ ResourceField

Returns a new instance of ResourceField.



229
230
231
232
233
234
235
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 229

def initialize(sym, type, editable, on_show, on_form, _group)
  self.sym = sym
  self.type = type
  self.on_show = on_show
  self.on_form = on_form
  self.editable = editable
end

Instance Attribute Details

#editableObject

Returns the value of attribute editable.



227
228
229
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 227

def editable
  @editable
end

#on_formObject

Returns the value of attribute on_form.



227
228
229
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 227

def on_form
  @on_form
end

#on_showObject

Returns the value of attribute on_show.



227
228
229
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 227

def on_show
  @on_show
end

#symObject

Returns the value of attribute sym.



227
228
229
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 227

def sym
  @sym
end

#typeObject

Returns the value of attribute type.



227
228
229
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 227

def type
  @type
end