Module: Rma::Payment::Gateway

Defined in:
lib/rma/payment/gateway.rb,
lib/rma/payment/gateway/utils.rb,
lib/rma/payment/gateway/client.rb,
lib/rma/payment/gateway/errors.rb,
lib/rma/payment/gateway/version.rb,
lib/rma/payment/gateway/authorization.rb,
lib/rma/payment/gateway/configuration.rb,
lib/rma/payment/gateway/debit_request.rb,
lib/rma/payment/gateway/account_inquiry.rb

Defined Under Namespace

Modules: Utils Classes: APIError, AccountInquiry, AuthenticationError, Authorization, Client, Configuration, ConfigurationError, DebitRequest, Error, InvalidParameterError, NetworkError, SignatureError, TransactionError

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



11
12
13
# File 'lib/rma/payment/gateway.rb', line 11

def configuration
  @configuration
end

Class Method Details

.clientObject



19
20
21
# File 'lib/rma/payment/gateway.rb', line 19

def self.client
  Client.new(configuration)
end

.configure {|configuration| ... } ⇒ Object

Yields:



14
15
16
17
# File 'lib/rma/payment/gateway.rb', line 14

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end