Method: Injectable::ClassMethods#call

Defined in:
lib/injectable/class_methods.rb

#call(args = {}) ⇒ Object

Use the service with the params declared with ‘.argument’

Examples:

MyService.call(foo: ‘first_argument’, bar: ‘second_argument’)


Parameters:

  • args (Hash) (defaults to: {})

    parameters needed for the Service



55
56
57
# File 'lib/injectable/class_methods.rb', line 55

def call(args = {})
  new.call(args)
end