This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Determines the links in the current response link header to be used to find the links to other pages of request responses. These will only be present if the result set size exceeds the per page limit.
Constant Summary collapseThis constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
:nodoc:
','.freeze
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/<([^>]+)>; rel=\"([^\"]+)\"/
Constants::ACCEPT, Constants::ACCEPTED_OAUTH_SCOPES, Constants::ACCEPT_CHARSET, Constants::CACHE_CONTROL, Constants::CONTENT_LENGTH, Constants::CONTENT_TYPE, Constants::DATE, Constants::ETAG, Constants::HEADER_LAST, Constants::HEADER_LINK, Constants::HEADER_NEXT, Constants::LOCATION, Constants::META_FIRST, Constants::META_LAST, Constants::META_NEXT, Constants::META_PREV, Constants::META_REL, Constants::OAUTH_SCOPES, Constants::PARAM_PAGE, Constants::PARAM_PER_PAGE, Constants::PARAM_START_PAGE, Constants::RATELIMIT_LIMIT, Constants::RATELIMIT_REMAINING, Constants::RATELIMIT_RESET, Constants::SERVER, Constants::USER_AGENT
Instance Attribute Summary collapseHold the extracted values for URI from the Link header for the first, last, next and previous page.
Hold the extracted values for URI from the Link header for the first, last, next and previous page.
Hold the extracted values for URI from the Link header for the first, last, next and previous page.
Hold the extracted values for URI from the Link header for the first, last, next and previous page.
Parses links from executed request.
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Parses links from executed request
27 28 29 30 31 32 33 34 35 36
# File 'lib/github_api/page_links.rb', line 27 def initialize() = [HEADER_LINK] if && =~ /(next|first|last|prev)/ () else self.next = [HEADER_NEXT] self.last = [HEADER_LAST] end endInstance Attribute Details #first ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Hold the extracted values for URI from the Link header for the first, last, next and previous page.
18 19 20
# File 'lib/github_api/page_links.rb', line 18 def first @first end#last ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Hold the extracted values for URI from the Link header for the first, last, next and previous page.
18 19 20
# File 'lib/github_api/page_links.rb', line 18 def last @last end#next ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Hold the extracted values for URI from the Link header for the first, last, next and previous page.
18 19 20
# File 'lib/github_api/page_links.rb', line 18 def next @next end#prev ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Hold the extracted values for URI from the Link header for the first, last, next and previous page.
18 19 20
# File 'lib/github_api/page_links.rb', line 18 def prev @prev end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4