Class: Braintree::DiscountGateway
- Inherits:
-
Object
- Object
- Braintree::DiscountGateway
- Defined in:
- lib/braintree/discount_gateway.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(gateway) ⇒ DiscountGateway
constructor
A new instance of DiscountGateway.
Constructor Details
#initialize(gateway) ⇒ DiscountGateway
Returns a new instance of DiscountGateway.
3 4 5 6 7 |
# File 'lib/braintree/discount_gateway.rb', line 3 def initialize(gateway) @gateway = gateway @config = gateway.config @config.assert_has_access_token_or_keys end |