Module: PaymobRuby

Defined in:
lib/paymob_ruby.rb,
lib/paymob_ruby/errors.rb,
lib/paymob_ruby/version.rb,
lib/paymob_ruby/api/login.rb,
lib/paymob_ruby/api/pay_card.rb,
lib/paymob_ruby/api/pay_token.rb,
lib/paymob_ruby/api/payment_token.rb,
lib/paymob_ruby/api/application_service.rb,
lib/generators/paymob_ruby/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: APIConnectionError, APIError, ApplicationService, AuthenticationError, InvalidRequestError, Login, PayCard, PayToken, PaymentToken, PaymobError, SignatureVerificationError

Constant Summary collapse

BASE_URI =
"https://accept.paymobsolutions.com/api"
VERSION =
"0.1.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



22
23
24
# File 'lib/paymob_ruby.rb', line 22

def api_key
  @api_key
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (PaymobRuby)

    the object that the method was called on



25
26
27
# File 'lib/paymob_ruby.rb', line 25

def self.configure
  yield self
end