class Stellar::TransactionPage
Public Class Methods
new(resource)
click to toggle source
@param [Hyperclient::Link] resource
# File lib/stellar/transaction_page.rb, line 6 def initialize(resource) @resource = resource end
Public Instance Methods
each() { |tx| ... }
click to toggle source
# File lib/stellar/transaction_page.rb, line 10 def each @resource.records.each do |tx| yield tx if block_given? end end
next_page()
click to toggle source
@return [Stellar::TransactionPage]
# File lib/stellar/transaction_page.rb, line 17 def next_page self.class.new(@resource.next) end
next_page!()
click to toggle source
# File lib/stellar/transaction_page.rb, line 21 def next_page! @resource = @resource.next end