Parent

Methods

Class/Module Index [+]

Quicksearch

Braintree::AddOnGateway

Public Class Methods

new(gateway) click to toggle source
# File lib/braintree/add_on_gateway.rb, line 3
def initialize(gateway)
  @gateway = gateway
  @config = gateway.config
end

Public Instance Methods

all() click to toggle source
# File lib/braintree/add_on_gateway.rb, line 8
def all
  response = @config.http.get "/add_ons"
  attributes_collection = response[:add_ons]
  attributes_collection.map do |attributes|
    AddOn._new(attributes)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.