Class: SepaFileParser::Pain002::GroupInformation
- Inherits:
-
Object
- Object
- SepaFileParser::Pain002::GroupInformation
- Defined in:
- lib/sepa_file_parser/pain002/group_information.rb
Instance Attribute Summary collapse
-
#xml_data ⇒ Object
readonly
Returns the value of attribute xml_data.
Instance Method Summary collapse
-
#initialize(xml_data) ⇒ GroupInformation
constructor
A new instance of GroupInformation.
- #message_id ⇒ Object
- #message_name_identification ⇒ Object
- #source ⇒ Object
- #status ⇒ Object
Constructor Details
#initialize(xml_data) ⇒ GroupInformation
Returns a new instance of GroupInformation.
9 10 11 |
# File 'lib/sepa_file_parser/pain002/group_information.rb', line 9 def initialize(xml_data) @xml_data = xml_data end |
Instance Attribute Details
#xml_data ⇒ Object (readonly)
Returns the value of attribute xml_data.
7 8 9 |
# File 'lib/sepa_file_parser/pain002/group_information.rb', line 7 def xml_data @xml_data end |
Instance Method Details
#message_id ⇒ Object
13 14 15 |
# File 'lib/sepa_file_parser/pain002/group_information.rb', line 13 def @message_id ||= xml_data.xpath('OrgnlMsgId/text()').text end |
#message_name_identification ⇒ Object
17 18 19 |
# File 'lib/sepa_file_parser/pain002/group_information.rb', line 17 def @message_name_identification ||= xml_data.xpath('OrgnlMsgNmId/text()').text end |
#source ⇒ Object
25 26 27 |
# File 'lib/sepa_file_parser/pain002/group_information.rb', line 25 def source xml_data.to_s end |
#status ⇒ Object
21 22 23 |
# File 'lib/sepa_file_parser/pain002/group_information.rb', line 21 def status @status ||= xml_data.xpath('GrpSts/text()').text end |