Module: MpApi

Defined in:
lib/mp_api.rb,
lib/mp_api/card.rb,
lib/mp_api/token.rb,
lib/mp_api/client.rb,
lib/mp_api/payment.rb,
lib/mp_api/version.rb,
lib/mp_api/customer.rb,
lib/mp_api/payment_error.rb,
lib/mp_api/payment_method.rb,
lib/generators/mp_api/install/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Card, Client, Configuration, Customer, Error, Payment, PaymentError, PaymentMethod, RequestError, Token

Constant Summary collapse

VERSION =
"1.2.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



28
29
30
# File 'lib/mp_api.rb', line 28

def configuration
  @configuration
end

Class Method Details

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

Yields:



31
32
33
34
# File 'lib/mp_api.rb', line 31

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