Class: Reportinator::Function

Inherits:
Base
  • Object
show all
Defined in:
lib/reportinator/function.rb

Direct Known Subclasses

ArrayFunction, StringFunction

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

config, #config, logger, #logger

Methods included from Helpers

#merge_hash, #merge_hash!, #symbolize_attributes

Class Method Details

.parse(element, metadata = {}) ⇒ Object



6
7
8
# File 'lib/reportinator/function.rb', line 6

def self.parse(element,  = {})
  new(element: element, metadata: ).get
end

Instance Method Details

#parse_and_execute_value(target, value) ⇒ Object



14
15
16
# File 'lib/reportinator/function.rb', line 14

def parse_and_execute_value(target, value)
  ValueParser.parse_and_execute(target, value, )
end

#parse_value(value) ⇒ Object



10
11
12
# File 'lib/reportinator/function.rb', line 10

def parse_value(value)
  ValueParser.parse(value, )
end

#prefixesObject



18
19
20
# File 'lib/reportinator/function.rb', line 18

def prefixes
  self.class::PREFIXES
end