Class: PayPal::SDK::Subscriptions::Link

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

Overview

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

#callObject



9
10
11
12
# File 'lib/paypal-sdk/subscriptions/link.rb', line 9

def call
  response = api.api_call(method: link.method, uri: URI.parse(link.href), header: {})
  response
end