Class: Afterburner::Framework::BaseInteractor

Inherits:
Object
  • Object
show all
Defined in:
lib/afterburner/framework/base_interactor.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(data, options = {}) ⇒ Object



5
6
7
# File 'lib/afterburner/framework/base_interactor.rb', line 5

def call(data, options = {})
  new(data, options).to_response
end

Instance Method Details

#to_responseObject



10
11
12
# File 'lib/afterburner/framework/base_interactor.rb', line 10

def to_response
  raise "#to_response must be specified!"
end