Module: Garbanzo

Defined in:
lib/garbanzo.rb,
lib/garbanzo/ast.rb,
lib/garbanzo/parser.rb,
lib/garbanzo/address.rb,
lib/garbanzo/request.rb,
lib/garbanzo/version.rb,
lib/garbanzo/ast/base.rb,
lib/garbanzo/duration.rb,
lib/garbanzo/interval.rb,
lib/garbanzo/response.rb,
lib/garbanzo/ast/cancel.rb,
lib/garbanzo/ast/create.rb,
lib/garbanzo/ast/status.rb,
lib/garbanzo/ast/update.rb,
lib/garbanzo/connection.rb,
lib/garbanzo/parameters.rb,
lib/garbanzo/credentials.rb,
lib/garbanzo/credit_card.rb,
lib/garbanzo/subscription.rb,
lib/garbanzo/subscription/base.rb,
lib/garbanzo/subscription/cancel.rb,
lib/garbanzo/subscription/create.rb,
lib/garbanzo/subscription/status.rb,
lib/garbanzo/subscription/update.rb

Overview

Garbanzo - A small Ruby library for interacting with Authorize.Net ARB Copyright © 2015 Corin Schedler

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Defined Under Namespace

Modules: AST, Parameters Classes: Address, Connection, Credentials, CreditCard, Duration, Interval, Parser, Request, Response, Subscription

Constant Summary collapse

TEST_HOST =
'https://apitest.authorize.net'
LIVE_HOST =
'https://api2.authorize.net'
API_URI =
'/xml/v1/request.api'
VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.connectionObject

Returns the value of attribute connection.



36
37
38
# File 'lib/garbanzo.rb', line 36

def connection
  @connection
end

Class Method Details

.configure {|connection| ... } ⇒ Object

Yields:



39
40
41
42
# File 'lib/garbanzo.rb', line 39

def self.configure
  self.connection ||= Connection.new
  yield connection
end