Module: Svarog::Base

Defined in:
lib/svarog.rb

Instance Method Summary collapse

Instance Method Details

#call(input = nil) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/svarog.rb', line 20

def call(input = nil)
  input ||= {}
  @_passed_input = Result.new(true, input)
  begin
    super
  rescue NoMethodError
    raise CallMethodNotImplemented, "You have to implement `call` method in your class before using it"
  end
  enforce_data_format
  @_passed_input
end