Module: SepaReasonCodes
- Defined in:
- lib/sepa_reason_codes.rb,
lib/sepa_reason_codes/code.rb,
lib/sepa_reason_codes/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'1.0.2'
Class Method Summary collapse
- .all ⇒ Object
-
.find(code) ⇒ Object
Usage:.
Class Method Details
.all ⇒ Object
42 43 44 45 46 |
# File 'lib/sepa_reason_codes.rb', line 42 def self.all PARSED_REASON_CODES.values.map do |reason_code_data| reason_code(reason_code_data) end end |
.find(code) ⇒ Object
Usage:
SepaReasonCodes.find(‘AC01’)
}
32 33 34 35 36 37 38 |
# File 'lib/sepa_reason_codes.rb', line 32 def self.find(code) reason_code_data = PARSED_REASON_CODES.fetch(code&.upcase, nil) return unless reason_code_data reason_code(reason_code_data) end |