Class: Simpleadmin::Decorators::Fields::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/simpleadmin/decorators/fields/base.rb

Overview

Since:

  • 1.0.0

Direct Known Subclasses

Image

Instance Method Summary collapse

Constructor Details

#initialize(table_name, table_field_name, resource) ⇒ Base

Returns a new instance of Base.

Since:

  • 1.0.0



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

#callObject

Raises:

  • (NotImplementedError)

Since:

  • 1.0.0



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