Class: PayPal::SDK::Subscriptions::Product::Page

Inherits:
RequestBase show all
Defined in:
lib/paypal-sdk/subscriptions/product.rb

Instance Attribute Summary

Attributes inherited from RequestAPIBase

#error, #header, #request_id

Instance Method Summary collapse

Methods inherited from RequestBase

#commit, #create, create!, find, #path, #update

Methods inherited from RequestAPIBase

#http_header, #merge!, #raise_error!, raise_on_api_error, #success?

Methods included from RequestDataType

#api, api, #error=, included

Instance Method Details

#nextObject



27
28
29
30
31
32
33
34
# File 'lib/paypal-sdk/subscriptions/product.rb', line 27

def next
  link = links.detect { |l| l.rel == 'next' }
  if link
    uri = URI.parse(link.href)
    response = api.api_call(method: :get, uri: uri, header: {})
    self.class.new(response)
  end
end