Class: Avo::GridFields::GridField

Inherits:
Object
  • Object
show all
Defined in:
lib/avo/grid_fields/grid_field.rb

Direct Known Subclasses

BodyField, PreviewField, TitleField

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, **args, &block) ⇒ GridField

Returns a new instance of GridField.



6
7
8
# File 'lib/avo/grid_fields/grid_field.rb', line 6

def initialize(id, **args, &block)
  @id = id
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/avo/grid_fields/grid_field.rb', line 4

def id
  @id
end