anchor.diff:  
   ### Script mode
   
  -Let's fetch some data in Ruby. For the following examples, we'll be using Ruby 2.2.
  +Now let's fetch some paginated data in Ruby. For the following examples, we'll be using Ruby 2.2.
   
   <aside class="callout panel"><p>
   
  
positive.code: 
  ```ruby
  def comments(params = {})
    paginated_get("members/me/actions", filter: "commentCard")
  end
  
  comments
  
negative.code: 
  ```ruby
  class Cursor
  def initialize(path, options = {})
  @path       = path
  @params     = options.dup
  
  @collection = []
  @page       = params.fetch(:page, 1)
  @limit      = params.fetch(:limit, 50)
  end
  end
  ```
  The `Cursor` will be initialized with a path and params, like our `paginated_get`. We'll also maintain an internal `@collection` array to cache elements as they are returned from Trello.
  
  ```ruby
  class Cursor
  private
  
  def client
  @client ||= Client.new
  end
  
  def fetch_next_page
  response              = client.get(@path, @params.merge(page: @page))
  @last_response_empty  = response.empty?
  @collection          += response
  @page                += 1
  end
  
  MAX = 1000
  
  def last?
  @last_response_empty || @page * @limit >= MAX
  end
  end
  ```
  
  