class Prolog::Services::ReplaceContent::Splitter::SplitterParams
Simple class to move splitter parameter munging out of ReplaceContent
.
Public Class Methods
new(content, endpoints)
click to toggle source
# File lib/prolog/services/replace_content/splitter/splitter_params.rb, line 10 def initialize(content, endpoints) @params = { content: content, endpoints: endpoints } self end
Public Instance Methods
add(**extra_params)
click to toggle source
# File lib/prolog/services/replace_content/splitter/splitter_params.rb, line 15 def add(**extra_params) @params.merge! extra_params self end
to_hash()
click to toggle source
# File lib/prolog/services/replace_content/splitter/splitter_params.rb, line 20 def to_hash @params end