Class: PayPal::SDK::Subscriptions::API

Inherits:
Core::API::REST
  • Object
show all
Defined in:
lib/paypal-sdk/subscriptions/request_data_type.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment = nil, options = {}) ⇒ API

Returns a new instance of API.



20
21
22
# File 'lib/paypal-sdk/subscriptions/request_data_type.rb', line 20

def initialize(environment = nil, options = {})
  super("", environment, options)
end

Class Method Details

.user_agentObject



25
26
27
# File 'lib/paypal-sdk/subscriptions/request_data_type.rb', line 25

def user_agent
  @user_agent ||= "PayPalSDK/PayPal-Subscriptions-Ruby-SDK #{PayPal::SDK::Subscriptions::VERSION} (#{sdk_library_details})"
end