Method: Elasticated::BulkRequest#method_missing

Defined in:
lib/elasticated/bulk_request.rb

#method_missing(method_name, *args, &block) ⇒ Object



39
40
41
42
43
44
45
46
47
# File 'lib/elasticated/bulk_request.rb', line 39

def method_missing(method_name, *args, &block)
  action_class = get_action_class method_name
  if action_class
    action = action_class.new(repository, *args, &block)
    add action
  else
    super
  end
end