Class: ActiveadminDynamicTable::RegisteredColumn
- Inherits:
-
Object
- Object
- ActiveadminDynamicTable::RegisteredColumn
- Defined in:
- lib/activeadmin_dynamic_table/column_settings.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
- #default? ⇒ Boolean
-
#initialize(options) ⇒ RegisteredColumn
constructor
A new instance of RegisteredColumn.
Constructor Details
#initialize(options) ⇒ RegisteredColumn
Returns a new instance of RegisteredColumn.
6 7 8 9 10 11 12 13 |
# File 'lib/activeadmin_dynamic_table/column_settings.rb', line 6 def initialize() @is_default = [:is_default] @key = [:key] @args = [:args] @block = [:block] @config = [:config] @method = [:method] end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/activeadmin_dynamic_table/column_settings.rb', line 4 def args @args end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/activeadmin_dynamic_table/column_settings.rb', line 4 def block @block end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/activeadmin_dynamic_table/column_settings.rb', line 4 def config @config end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/activeadmin_dynamic_table/column_settings.rb', line 4 def key @key end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/activeadmin_dynamic_table/column_settings.rb', line 4 def method @method end |
Instance Method Details
#default? ⇒ Boolean
15 16 17 |
# File 'lib/activeadmin_dynamic_table/column_settings.rb', line 15 def default? @is_default end |