lib/trav3/pagination.rb in trav3-0.4.1 vs lib/trav3/pagination.rb in trav3-0.5.0

- old
+ new

@@ -6,22 +6,28 @@ def initialize(travis, result) @travis = travis @result = result end + # Next page of results + # @return [Success, RequestError] def next get(action(:next)) end + # First page of results + # @return [Success, RequestError] def first get(action(:first)) end + # Last page of results + # @return [Success, RequestError] def last get(action(:last)) end - private + private # @private def action(action) dig('@pagination').dig(action.to_s).dig('@href') end