Class: PayPal::ExpressCheckout::Base
- Inherits:
-
Object
- Object
- PayPal::ExpressCheckout::Base
- Includes:
- Fields
- Defined in:
- lib/paypal/express_checkout/base.rb
Direct Known Subclasses
Account, Billing, Callback, Checkout, Fmf, Payment, PaymentItem, Recurring, ShippingOption
Constant Summary
Constants included from Fields
Fields::ASSOCIATIONS, Fields::ATTRIBUTES
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
-
#request ⇒ Object
Just a shortcut convenience.
- #run(method, params = {}, headers = {}) ⇒ Object
Methods included from Fields
#field_map, #group_collect, #group_fields, #has_fields?, #has_many?, included, #inverted_field_map
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/paypal/express_checkout/base.rb', line 11 def initialize( = {}) .each {|name, value| send("#{name}=", value)} end |
Instance Method Details
#request ⇒ Object
Just a shortcut convenience.
17 18 19 |
# File 'lib/paypal/express_checkout/base.rb', line 17 def request # :nodoc: @request ||= PayPal::ExpressCheckout::Request.new end |
#run(method, params = {}, headers = {}) ⇒ Object
21 22 23 |
# File 'lib/paypal/express_checkout/base.rb', line 21 def run(method, params = {}, headers = {}) request.run(self, method, params, headers) end |