Class: CFONB::OperationDetail::REF

Inherits:
Object
  • Object
show all
Defined in:
lib/cfonb/operation_detail/ref.rb

Constant Summary collapse

ATTRIBUTES =
%i[reference].freeze

Class Method Summary collapse

Class Method Details

.apply(operation, line) ⇒ Object



10
11
12
13
14
15
# File 'lib/cfonb/operation_detail/ref.rb', line 10

def self.apply(operation, line)
  operation.reference = [
    operation.reference,
    line.detail.strip,
  ].filter_map(&:presence).join(' - ')
end