Class: Olivander::Resources::ResourceFields::ResourceField
- Inherits:
-
Object
- Object
- Olivander::Resources::ResourceFields::ResourceField
- Defined in:
- app/controllers/concerns/olivander/resources/auto_form_attributes.rb
Instance Attribute Summary collapse
-
#editable ⇒ Object
Returns the value of attribute editable.
-
#on_form ⇒ Object
Returns the value of attribute on_form.
-
#on_show ⇒ Object
Returns the value of attribute on_show.
-
#sym ⇒ Object
Returns the value of attribute sym.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(sym, type, editable, on_show, on_form, _group) ⇒ ResourceField
constructor
A new instance of ResourceField.
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
#editable ⇒ Object
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_form ⇒ Object
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_show ⇒ Object
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 |
#sym ⇒ Object
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 |
#type ⇒ Object
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 |