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, group) ⇒ ResourceField

Returns a new instance of ResourceField.



152
153
154
155
156
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 152

def initialize(sym, type, editable, group)
  self.sym = sym
  self.type = type
  self.editable = editable
end

Instance Attribute Details

#editableObject

Returns the value of attribute editable.



150
151
152
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 150

def editable
  @editable
end

#symObject

Returns the value of attribute sym.



150
151
152
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 150

def sym
  @sym
end

#typeObject

Returns the value of attribute type.



150
151
152
# File 'app/controllers/concerns/olivander/resources/auto_form_attributes.rb', line 150

def type
  @type
end