Sha256: 9fa23c53babfbba36ad33c648fd1cac04c65a45533ceda2c95b639e39bec4aac

Contents?: true

Size: 429 Bytes

Versions: 84

Compression:

Stored size: 429 Bytes

Contents

module Braintree
  class AddOnGateway # :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}/add_ons")
      attributes_collection = response[:add_ons]
      attributes_collection.map do |attributes|
        AddOn._new(attributes)
      end
    end
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/add_on_gateway.rb
braintree-4.14.0 lib/braintree/add_on_gateway.rb
braintree-4.13.0 lib/braintree/add_on_gateway.rb
braintree-4.12.0 lib/braintree/add_on_gateway.rb
braintree-4.11.0 lib/braintree/add_on_gateway.rb
braintree-4.10.0 lib/braintree/add_on_gateway.rb
braintree-4.9.0 lib/braintree/add_on_gateway.rb
braintree-4.8.0 lib/braintree/add_on_gateway.rb
braintree-4.7.0 lib/braintree/add_on_gateway.rb
braintree-4.6.0 lib/braintree/add_on_gateway.rb
braintree-4.5.0 lib/braintree/add_on_gateway.rb
braintree-4.4.0 lib/braintree/add_on_gateway.rb
braintree-4.3.0 lib/braintree/add_on_gateway.rb
braintree-4.2.0 lib/braintree/add_on_gateway.rb
braintree-4.1.0 lib/braintree/add_on_gateway.rb
braintree-4.0.0 lib/braintree/add_on_gateway.rb
braintree-3.4.0 lib/braintree/add_on_gateway.rb
braintree-3.3.0 lib/braintree/add_on_gateway.rb
braintree-3.2.0 lib/braintree/add_on_gateway.rb
braintree-3.1.0 lib/braintree/add_on_gateway.rb