Sha256: de1fa935b8691b9ebfa83e5c8330c8a9738c62925ca0ef5ae036d23f9b2ceb9d
Contents?: true
Size: 502 Bytes
Versions: 36
Compression:
Stored size: 502 Bytes
Contents
module Github class PageUriProcessor include Github::Constants include Github::Utils::Url attr_reader :link, :query_string def initialize(uri) @link = uri.split(QUERY_STR_SEP).first @query_string = uri.split(QUERY_STR_SEP).last end def resource_link link end def query_hash parsed_query = parse_query(query_string) params = {} if parsed_query.include? :last_sha params[:sha] = parsed_query[:last_sha] end end end
Version data entries
36 entries across 36 versions & 1 rubygems