Class: Reportinator::Function
- Inherits:
-
Base
- Object
- Base
- Reportinator::Function
show all
- Defined in:
- lib/reportinator/function.rb
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, metadata = {})
new(element: element, metadata: 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, metadata)
end
|
#parse_value(value) ⇒ Object
10
11
12
|
# File 'lib/reportinator/function.rb', line 10
def parse_value(value)
ValueParser.parse(value, metadata)
end
|
#prefixes ⇒ Object
18
19
20
|
# File 'lib/reportinator/function.rb', line 18
def prefixes
self.class::PREFIXES
end
|