# File lib/braintree/discount_gateway.rb, line 8 def all response = @config.http.get "/discounts" attributes_collection = response[:discounts] attributes_collection.map do |attributes| Discount._new(attributes) end end