Module: PaymobRuby

Defined in:
lib/paymob_ruby.rb,
lib/paymob_ruby/hmac.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/configuration.rb,
lib/paymob_ruby/api/payment_token.rb,
lib/paymob_ruby/json_schemas/user.rb,
lib/paymob_ruby/api/application_service.rb,
lib/generators/paymob_ruby/install_generator.rb

Defined Under Namespace

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

Constant Summary collapse

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

.hmac_keyObject

Returns the value of attribute hmac_key.



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

def hmac_key
  @hmac_key
end

Class Method Details

.configurationObject



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

def configuration
  @configuration ||= Configuration.new
end

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

Yields:



27
28
29
# File 'lib/paymob_ruby.rb', line 27

def configure
  yield configuration
end