Sha256: da67c56de9977ada30ad8720ac43be7037ed41e37a805438820c4b66c18a707f

Contents?: true

Size: 364 Bytes

Versions: 34

Compression:

Stored size: 364 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

34 entries across 34 versions & 1 rubygems

Version Path
braintree-2.28.0 lib/braintree/plan_gateway.rb
braintree-2.27.1 lib/braintree/plan_gateway.rb
braintree-2.27.0 lib/braintree/plan_gateway.rb
braintree-2.26.0 lib/braintree/plan_gateway.rb
braintree-2.25.0 lib/braintree/plan_gateway.rb
braintree-2.24.0 lib/braintree/plan_gateway.rb
braintree-2.23.0 lib/braintree/plan_gateway.rb
braintree-2.22.0 lib/braintree/plan_gateway.rb
braintree-2.21.0 lib/braintree/plan_gateway.rb
braintree-2.20.0 lib/braintree/plan_gateway.rb
braintree-2.19.0 lib/braintree/plan_gateway.rb
braintree-2.18.0 lib/braintree/plan_gateway.rb
braintree-2.17.0 lib/braintree/plan_gateway.rb
braintree-2.16.0 lib/braintree/plan_gateway.rb