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

Methods included from Feature::Configs::Standard

feature?, feature_class?

Methods included from Config

included

Instance Method Details

#calculate(number) ⇒ Object



25
26
27
# File 'lib/convenient_service/examples/standard/factorial.rb', line 25

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