module Restforce::Concerns::API

def recent(limit = nil)

Returns an array of the recently viewed Restforce::SObject records.

records per object.
returned is the maximum number of entries in RecentlyViewed, which is 200
If this parameter is not specified, the default maximum number of records
returned.
limit - An optional limit that specifies the maximum number of records to be

Public: Finds recently viewed items for the logged-in user.
def recent(limit = nil)
  path = limit ? "recent?limit=#{limit}" : "recent"
  api_get(path).body
end