Module: CFONB::OperationDetail
- Defined in:
- lib/cfonb/operation_detail.rb,
lib/cfonb/operation_detail/fee.rb,
lib/cfonb/operation_detail/lc2.rb,
lib/cfonb/operation_detail/lcc.rb,
lib/cfonb/operation_detail/lcs.rb,
lib/cfonb/operation_detail/lib.rb,
lib/cfonb/operation_detail/mmo.rb,
lib/cfonb/operation_detail/nbe.rb,
lib/cfonb/operation_detail/npy.rb,
lib/cfonb/operation_detail/rcn.rb,
lib/cfonb/operation_detail/ref.rb
Defined Under Namespace
Classes: FEE, LC2, LCC, LCS, LIB, MMO, NBE, NPY, RCN, REF
Class Method Summary
collapse
Class Method Details
.for(line) ⇒ Object
17
18
19
|
# File 'lib/cfonb/operation_detail.rb', line 17
def self.for(line)
@details[line.detail_code]
end
|
.register(code, klass) ⇒ Object
7
8
9
10
11
12
13
14
15
|
# File 'lib/cfonb/operation_detail.rb', line 7
def self.register(code, klass)
if klass.const_defined?(:ATTRIBUTES)
Operation.class_eval do
attr_accessor(*klass::ATTRIBUTES)
end
end
@details[code] = klass
end
|