Class: ElasticRecord::Index::Deferred::DeferredConnection::DeferredAction

Inherits:
Struct
  • Object
show all
Defined in:
lib/elastic_record/index/deferred.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



5
6
7
# File 'lib/elastic_record/index/deferred.rb', line 5

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



5
6
7
# File 'lib/elastic_record/index/deferred.rb', line 5

def block
  @block
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



5
6
7
# File 'lib/elastic_record/index/deferred.rb', line 5

def method
  @method
end

Instance Method Details

#run(index) ⇒ Object



6
7
8
# File 'lib/elastic_record/index/deferred.rb', line 6

def run(index)
  index.send(method, *args, &block)
end