class XmlConv::State::Transactions::PageFacade

Attributes

model[RW]
pages[RW]

Public Class Methods

new(int) click to toggle source
# File lib/xmlconv/state/transactions.rb, line 12
def initialize(int)
        @int = int
end

Public Instance Methods

next() click to toggle source
# File lib/xmlconv/state/transactions.rb, line 15
def next
        PageFacade.new(@int.next)
end
previous() click to toggle source
# File lib/xmlconv/state/transactions.rb, line 22
def previous
        PageFacade.new(@int-1)
end
to_i() click to toggle source
# File lib/xmlconv/state/transactions.rb, line 28
def to_i
        @int
end
to_s() click to toggle source
# File lib/xmlconv/state/transactions.rb, line 31
def to_s
        @int.next.to_s
end
total() click to toggle source
# File lib/xmlconv/state/transactions.rb, line 25
def total
        @pages.size
end