Class: ConvenientService::Examples::Standard::ComprehensiveSuite::Services::ErrorService

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard
Defined in:
lib/convenient_service/examples/standard/comprehensive_suite/services/error_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index: -1)) ⇒ void

Parameters:

  • index (Integer) (defaults to: -1))


21
22
23
# File 'lib/convenient_service/examples/standard/comprehensive_suite/services/error_service.rb', line 21

def initialize(index: -1)
  @index = index
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



15
16
17
# File 'lib/convenient_service/examples/standard/comprehensive_suite/services/error_service.rb', line 15

def index
  @index
end

Instance Method Details

#resultConvenientService::Result

Returns:

  • (ConvenientService::Result)


28
29
30
# File 'lib/convenient_service/examples/standard/comprehensive_suite/services/error_service.rb', line 28

def result
  error(index: index)
end