Class: Kaal::SchedulerFileLoader::HelperBundle

Inherits:
Object
  • Object
show all
Defined in:
lib/kaal/scheduler_file/helper_bundle.rb

Overview

Exposes hash/placeholder helpers to extracted scheduler-file collaborators.

Instance Method Summary collapse

Constructor Details

#initialize(loader:) ⇒ HelperBundle

Returns a new instance of HelperBundle.



11
12
13
# File 'lib/kaal/scheduler_file/helper_bundle.rb', line 11

def initialize(loader:)
  @loader = loader
end

Instance Method Details

#resolve_placeholders(value, context) ⇒ Object



19
20
21
# File 'lib/kaal/scheduler_file/helper_bundle.rb', line 19

def resolve_placeholders(value, context)
  @loader.send(:resolve_placeholders, value, context)
end

#stringify_keys(payload) ⇒ Object



15
16
17
# File 'lib/kaal/scheduler_file/helper_bundle.rb', line 15

def stringify_keys(payload)
  @loader.send(:stringify_keys, payload)
end

#validate_placeholders(value, key:) ⇒ Object



23
24
25
# File 'lib/kaal/scheduler_file/helper_bundle.rb', line 23

def validate_placeholders(value, key:)
  @loader.send(:validate_placeholders, value, key:)
end