Class: TypeStation::Blocks::Field

Inherits:
Base
  • Object
show all
Defined in:
lib/type_station/blocks/field.rb

Instance Attribute Summary

Attributes inherited from Base

#authorise, #model, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #render

Constructor Details

This class inherits a constructor from TypeStation::Blocks::Base

Instance Method Details

#dataObject



7
8
9
10
11
12
13
14
# File 'lib/type_station/blocks/field.rb', line 7

def data
  {
    type: options[:type],
    id: model.to_param,
    field:  options[:field],
    options: data_options
  }
end