Class: Simpleadmin::Decorators::Fields::Base
- Inherits:
-
Object
- Object
- Simpleadmin::Decorators::Fields::Base
- Defined in:
- lib/simpleadmin/decorators/fields/base.rb
Overview
Direct Known Subclasses
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(table_name, table_field_name, resource) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(table_name, table_field_name, resource) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 |
# File 'lib/simpleadmin/decorators/fields/base.rb', line 7 def initialize(table_name, table_field_name, resource) @table_name = table_name @table_field_name = table_field_name @resource = resource end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/simpleadmin/decorators/fields/base.rb', line 14 def call raise NotImplementedError, 'Please follow the unified interface, add method #call' end |