Class: ConvenientService::Examples::Standard::Factorial

Inherits:
Object
  • Object
show all
Includes:
Feature::Configs::Standard
Defined in:
lib/convenient_service/examples/standard/factorial.rb,
lib/convenient_service/examples/standard/factorial/utils/timeout.rb,
lib/convenient_service/examples/standard/factorial/services/calculate.rb,
lib/convenient_service/examples/standard/factorial/utils/timeout/with_timeout.rb

Defined Under Namespace

Modules: Services, Utils

Instance Method Summary collapse

Instance Method Details

#calculate(number) ⇒ Object



20
21
22
# File 'lib/convenient_service/examples/standard/factorial.rb', line 20

def calculate(number)
  Services::Calculate[number: number]
end