lib/gocardless/paginator.rb
# Set the number of records per page (page size), if an argument is
# provided. Returns the current per_page value, whether an argument is
# provided or not.
Set the number of records per page (page size), if an argument is
provided. Returns the current per_page value, whether an argument is
provided or not.
Set the number of records per page ( page size ) if an argument is provided . Returns the current per_page value whether an argument is provided or not .
def per_page(results_per_page = nil)
      if results_per_page
        @num_records, @num_pages = nil, nil
        @per_page = results_per_page
        self
      else
        @per_page
      end
    end
def per_page ( results_per_page = nil ) if results_per_page @num_records , @num_pages = nil , nil @per_page = results_per_page self else @per_page end end
Set the number of records per page (page size), if an argument is
provided.
Set the number of records per page ( page size ) if an argument is provided .
results_per_page
<not_specific>