Class: ActiveAdminAddons::CustomBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/activeadmin_addons/support/custom_builder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, model, *args, &block) ⇒ CustomBuilder

Returns a new instance of CustomBuilder.



5
6
7
8
9
10
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 5

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



3
4
5
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3

def args
  @args
end

#blockObject

Returns the value of attribute block.



3
4
5
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3

def block
  @block
end

#contextObject

Returns the value of attribute context.



3
4
5
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3

def context
  @context
end

#modelObject

Returns the value of attribute model.



3
4
5
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 3

def model
  @model
end

Class Method Details

.render(context, model, *args, &block) ⇒ Object



15
16
17
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 15

def self.render(context, model, *args, &block)
  new(context, model, *args, &block).render
end

Instance Method Details

#renderObject



12
13
# File 'lib/activeadmin_addons/support/custom_builder.rb', line 12

def render
end