Class: SepaFileParser::BankTransactionCode
- Inherits:
-
Object
- Object
- SepaFileParser::BankTransactionCode
- Defined in:
- lib/sepa_file_parser/general/bank_transaction_code.rb
Instance Attribute Summary collapse
-
#xml_data ⇒ Object
readonly
Returns the value of attribute xml_data.
Instance Method Summary collapse
-
#domain_code ⇒ Object
May be missing.
-
#family_code ⇒ Object
May be missing.
-
#initialize(xml_data) ⇒ BankTransactionCode
constructor
A new instance of BankTransactionCode.
-
#sub_family_code ⇒ Object
May be missing.
Constructor Details
#initialize(xml_data) ⇒ BankTransactionCode
Returns a new instance of BankTransactionCode.
8 9 10 |
# File 'lib/sepa_file_parser/general/bank_transaction_code.rb', line 8 def initialize(xml_data) @xml_data = xml_data end |
Instance Attribute Details
#xml_data ⇒ Object (readonly)
Returns the value of attribute xml_data.
6 7 8 |
# File 'lib/sepa_file_parser/general/bank_transaction_code.rb', line 6 def xml_data @xml_data end |
Instance Method Details
#domain_code ⇒ Object
May be missing
12 13 14 |
# File 'lib/sepa_file_parser/general/bank_transaction_code.rb', line 12 def domain_code # May be missing @domain_code ||= xml_data.xpath('Domn/Cd/text()').text end |
#family_code ⇒ Object
May be missing
16 17 18 |
# File 'lib/sepa_file_parser/general/bank_transaction_code.rb', line 16 def family_code # May be missing @family_code ||= xml_data.xpath('Domn/Fmly/Cd/text()').text end |
#sub_family_code ⇒ Object
May be missing
20 21 22 |
# File 'lib/sepa_file_parser/general/bank_transaction_code.rb', line 20 def sub_family_code # May be missing @sub_family_code ||= xml_data.xpath('Domn/Fmly/SubFmlyCd/text()').text end |