Sha256: f565a3d86b0ef6b2c453b44303734274638361a683b63187417b4a711ad4a8a7
Contents?: true
Size: 439 Bytes
Versions: 84
Compression:
Stored size: 439 Bytes
Contents
module Braintree class DiscountGateway # :nodoc def initialize(gateway) @gateway = gateway @config = gateway.config @config.assert_has_access_token_or_keys end def all response = @config.http.get("#{@config.base_merchant_path}/discounts") attributes_collection = response[:discounts] attributes_collection.map do |attributes| Discount._new(attributes) end end end end
Version data entries
84 entries across 84 versions & 1 rubygems