Sha256: 344455c6a58d8da7c03be0a35c929fff1799b724e967a7d4db173b9c06e25704

Contents?: true

Size: 353 Bytes

Versions: 42

Compression:

Stored size: 353 Bytes

Contents

module Braintree
  class AddOnGateway # :nodoc
    def initialize(gateway)
      @gateway = gateway
      @config = gateway.config
    end

    def all
      response = @config.http.get "/add_ons"
      attributes_collection = response[:add_ons]
      attributes_collection.map do |attributes|
        AddOn._new(attributes)
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
braintree-2.45.0 lib/braintree/add_on_gateway.rb
braintree-2.44.0 lib/braintree/add_on_gateway.rb
braintree-2.43.0 lib/braintree/add_on_gateway.rb
braintree-2.42.0 lib/braintree/add_on_gateway.rb
braintree-2.41.0 lib/braintree/add_on_gateway.rb
braintree-2.40.0 lib/braintree/add_on_gateway.rb
braintree-2.39.0 lib/braintree/add_on_gateway.rb
braintree-2.38.0 lib/braintree/add_on_gateway.rb
braintree-2.37.0 lib/braintree/add_on_gateway.rb
braintree-2.36.0 lib/braintree/add_on_gateway.rb
braintree-2.35.0 lib/braintree/add_on_gateway.rb
braintree-2.34.1 lib/braintree/add_on_gateway.rb
braintree-2.34.0 lib/braintree/add_on_gateway.rb
braintree-2.33.1 lib/braintree/add_on_gateway.rb
braintree-2.33.0 lib/braintree/add_on_gateway.rb
braintree-2.32.1 lib/braintree/add_on_gateway.rb
braintree-2.31.0 lib/braintree/add_on_gateway.rb
braintree-2.30.2 lib/braintree/add_on_gateway.rb
braintree-2.30.0 lib/braintree/add_on_gateway.rb
braintree-2.29.0 lib/braintree/add_on_gateway.rb