Class: SepaFileParser::MessagePagination
- Inherits:
-
Object
- Object
- SepaFileParser::MessagePagination
- Defined in:
- lib/sepa_file_parser/general/group_header.rb
Instance Attribute Summary collapse
-
#page_number ⇒ Object
readonly
Returns the value of attribute page_number.
-
#xml_data ⇒ Object
readonly
Returns the value of attribute xml_data.
Instance Method Summary collapse
-
#initialize(xml_data) ⇒ MessagePagination
constructor
A new instance of MessagePagination.
- #last_page? ⇒ Boolean
Constructor Details
#initialize(xml_data) ⇒ MessagePagination
Returns a new instance of MessagePagination.
28 29 30 31 32 |
# File 'lib/sepa_file_parser/general/group_header.rb', line 28 def initialize(xml_data) @xml_data = xml_data @page_number = xml_data.xpath('PgNb/text()').text.to_i @last_page_indicator = xml_data.xpath('LastPgInd/text()').text == 'true' end |
Instance Attribute Details
#page_number ⇒ Object (readonly)
Returns the value of attribute page_number.
25 26 27 |
# File 'lib/sepa_file_parser/general/group_header.rb', line 25 def page_number @page_number end |
#xml_data ⇒ Object (readonly)
Returns the value of attribute xml_data.
25 26 27 |
# File 'lib/sepa_file_parser/general/group_header.rb', line 25 def xml_data @xml_data end |
Instance Method Details
#last_page? ⇒ Boolean
34 35 36 |
# File 'lib/sepa_file_parser/general/group_header.rb', line 34 def last_page? @last_page_indicator end |