Skip to content

Commit

Permalink
Add safe operator (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauragilgz authored Dec 2, 2024
1 parent b6fef0c commit 6535df5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cfonb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = 'cfonb'
s.version = '1.0.0'
s.version = '1.0.1'
s.required_ruby_version = '>= 3.2'
s.summary = 'CFONB parser'
s.description = 'An easy to use CFONB format parser'
Expand Down
2 changes: 1 addition & 1 deletion lib/cfonb/operation_details/ibe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IBE < Base

def self.apply(details, line)
details.creditor_identifier = line.detail[0..34].strip
details.creditor_identifier_type = line.detail[35..-1].strip
details.creditor_identifier_type = line.detail[35..-1]&.strip
end

CFONB::OperationDetails.register('IBE', self)
Expand Down
2 changes: 1 addition & 1 deletion lib/cfonb/operation_details/ipy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IPY < Base

def self.apply(details, line)
details.debtor_identifier = line.detail[0..34].strip
details.debtor_identifier_type = line.detail[35..-1].strip
details.debtor_identifier_type = line.detail[35..-1]&.strip
end

CFONB::OperationDetails.register('IPY', self)
Expand Down

0 comments on commit 6535df5

Please sign in to comment.