Class: PapierkramApi::V1::BusinessIntelligence::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/papierkram_api/v1/business_intelligence/base.rb

Overview

Business Intelligence Base Class

Business Intelligence is a set of services that can be used to gain insights into the data stored in the system.

Therefor you should pass data to the service and get back a result.

IMPORTANT no calls to the API should be made in this class. This is an intentional design decision! To seperate logic from the data source.

Instance Method Summary collapse

Instance Method Details

#expenses_by_categoryObject



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/papierkram_api/v1/business_intelligence/base.rb', line 17

def expenses_by_category
  warning = <<~MSG
    [DEPRECATION] `expenses_by_category` is deprecated. #{' '}
    It will be removed in a version after 0.4.0, most probably in 0.5.0.

    [DEPRECATION] Support for RUBY 2.7 will be dropped#{' '}
    in a version after 0.4.0, most probably in 0.5.0.
  MSG
  warn(warning)

  @expenses_by_category ||= PapierkramApi::V1::BusinessIntelligence::ExpensesByCategory.new
end