Class: SimpleRewriter::Rewriter

Inherits:
BaseService show all
Defined in:
lib/simple_rewriter/rewriter.rb

Instance Method Summary collapse

Methods inherited from BaseService

call

Constructor Details

#initialize(record:, attributes: []) ⇒ Rewriter

Returns a new instance of Rewriter.



5
6
7
8
# File 'lib/simple_rewriter/rewriter.rb', line 5

def initialize(record:, attributes: [])
  @record = record
  @attributes = attributes
end

Instance Method Details

#callObject



10
11
12
13
# File 'lib/simple_rewriter/rewriter.rb', line 10

def call
  rewrite_attributes
  finalize
end