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

Version Path
github_api-0.8.11 lib/github_api/page_uri_processor.rb
github_api-0.8.10 lib/github_api/page_uri_processor.rb
github_api-0.8.9 lib/github_api/page_uri_processor.rb
github_api-0.8.8 lib/github_api/page_uri_processor.rb
github_api-0.8.7 lib/github_api/page_uri_processor.rb
github_api-0.8.6 lib/github_api/page_uri_processor.rb
github_api-0.8.5 lib/github_api/page_uri_processor.rb
github_api-0.8.4 lib/github_api/page_uri_processor.rb
github_api-0.8.3 lib/github_api/page_uri_processor.rb
github_api-0.8.2 lib/github_api/page_uri_processor.rb
github_api-0.8.1 lib/github_api/page_uri_processor.rb
github_api-0.8.0 lib/github_api/page_uri_processor.rb
github_api-0.7.2 lib/github_api/page_uri_processor.rb
github_api-0.7.1 lib/github_api/page_uri_processor.rb
github_api-0.7.0 lib/github_api/page_uri_processor.rb
github_api-0.6.5 lib/github_api/page_uri_processor.rb
github_api-0.6.4 lib/github_api/page_uri_processor.rb
github_api-0.6.3 lib/github_api/page_uri_processor.rb
github_api-0.6.2 lib/github_api/page_uri_processor.rb
github_api-0.6.1 lib/github_api/page_uri_processor.rb