Sha256: c60d95a4506e35d546eb95539ca86e6dc5368d89651afeea29021fdc3d21d88c

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

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

    def all
      response = @config.http.get "/plans"
      attributes_collection = response[:plans]
      attributes_collection.map do |attributes|
        Plan._new(@gateway, attributes)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-2.15.0 lib/braintree/plan_gateway.rb
braintree-2.14.0 lib/braintree/plan_gateway.rb
braintree-2.13.4 lib/braintree/plan_gateway.rb
braintree-2.13.3 lib/braintree/plan_gateway.rb
braintree-2.13.2 lib/braintree/plan_gateway.rb
braintree-2.13.1 lib/braintree/plan_gateway.rb
braintree-2.13.0 lib/braintree/plan_gateway.rb
braintree-2.12.0 lib/braintree/plan_gateway.rb