Class: CamtParser::MessagePagination
- Inherits:
-
Object
- Object
- CamtParser::MessagePagination
- Defined in:
- lib/camt_parser/general/group_header.rb
Instance Attribute Summary collapse
-
#page_number ⇒ Object
readonly
Returns the value of attribute page_number.
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.
18 19 20 21 |
# File 'lib/camt_parser/general/group_header.rb', line 18 def initialize(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.
16 17 18 |
# File 'lib/camt_parser/general/group_header.rb', line 16 def page_number @page_number end |
Instance Method Details
#last_page? ⇒ Boolean
23 24 25 |
# File 'lib/camt_parser/general/group_header.rb', line 23 def last_page? @last_page_indicator end |