Class: DefraRubyMocks::BaseService

Inherits:
Object
  • Object
show all
Defined in:
app/services/defra_ruby_mocks/base_service.rb

Class Method Summary collapse

Class Method Details

.run(options = nil) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/services/defra_ruby_mocks/base_service.rb', line 5

def self.run(options = nil)
  if options && !options.is_a?(Hash)
    new.run(options)
  elsif options
    new.run(**options)
  else
    new.run
  end
end