lib/sightstone/modules/game_module.rb
def recent(summoner, optional={})
    region = optional[:region] || @sightstone.region
   id = if summoner.is_a? Summoner
     summoner.id
   else
     summoner
   end
   uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.3/game/by-summoner/#{id}/recent"
   
    response = _get_api_response(uri)
    _parse_response(response) { |resp|
      data = JSON.parse(resp)
      history =  MatchHistory.new(data)
      if block_given?
        yield history
      else
        return history
      end
    }
  end
def recent(summoner, optional={})
    region = optional[:region] || @sightstone.region
   id = if summoner.is_a? Summoner
     summoner.id
   else
     summoner
   end
   uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.3/game/by-summoner/#{id}/recent"
   
    response = _get_api_response(uri)
    _parse_response(response) { |resp|
      data = JSON.parse(resp)
      history =  MatchHistory.new(data)
      if block_given?
        yield history
      else
        return history
      end
    }
  end
returns the match history of a summoner
 @param [Summoner, Fixnum] summoner summoner object or id of a summoner
 @param optional [Hash] optional arguments: :region => replaces default region
 @return [MatchHistory] match history of the summoner