Class: Olivander::Resources::ResourceFields::ResourceFieldSection
- Inherits:
-
Object
- Object
- Olivander::Resources::ResourceFields::ResourceFieldSection
- Defined in:
- app/controllers/concerns/olivander/resources/auto_form_attributes.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#fields ⇒ Object
Returns the value of attribute fields.
Instance Method Summary collapse
- #column_class ⇒ Object
-
#initialize(columns = 1) ⇒ ResourceFieldSection
constructor
A new instance of ResourceFieldSection.
Constructor Details
#initialize(columns = 1) ⇒ ResourceFieldSection
Returns a new instance of ResourceFieldSection.
147 148 149 150 |
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 147 def initialize(columns = 1) self.columns = columns self.fields = [] end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
145 146 147 |
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 145 def columns @columns end |
#fields ⇒ Object
Returns the value of attribute fields.
145 146 147 |
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 145 def fields @fields end |
Instance Method Details
#column_class ⇒ Object
152 153 154 |
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 152 def column_class "col-md-#{12/columns}" end |