class PayU::Configuration
Constants
- PRODUCTION_ENV_NAME
- PRODUCTION_HOST_URI
- SANDBOX_HOST_URI
Attributes
env[RW]
notify_url[RW]
oauth_client_id[RW]
oauth_client_secret[RW]
pos_id[RW]
second_key[RW]
Public Class Methods
new()
click to toggle source
# File lib/payu.rb, line 25 def initialize @env = PRODUCTION_ENV_NAME end
Public Instance Methods
host()
click to toggle source
# File lib/payu.rb, line 29 def host production? ? PRODUCTION_HOST_URI : SANDBOX_HOST_URI end
production?()
click to toggle source
# File lib/payu.rb, line 33 def production? @env == PRODUCTION_ENV_NAME end