class Braintree::AddOnGateway
Public Class Methods
Source
# File lib/braintree/add_on_gateway.rb, line 3 def initialize(gateway) @gateway = gateway @config = gateway.config @config.assert_has_access_token_or_keys end
Public Instance Methods
Source
# File lib/braintree/add_on_gateway.rb, line 9 def all response = @config.http.get("#{@config.base_merchant_path}/add_ons") attributes_collection = response[:add_ons] attributes_collection.map do |attributes| AddOn._new(attributes) end end