Class: Abc::BaseInteractor

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

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



4
5
6
# File 'lib/abc/base_interactor.rb', line 4

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

Instance Method Details

#to_responseObject



9
10
11
# File 'lib/abc/base_interactor.rb', line 9

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