Class: Webpay
- Inherits:
-
Object
- Object
- Webpay
- Defined in:
- lib/webpay.rb
Instance Method Summary collapse
- #getCaptureTransaction ⇒ Object
- #getCompleteTransaction ⇒ Object
- #getMallNormalTransaction ⇒ Object
- #getNormalTransaction ⇒ Object
- #getNullifyTransaction ⇒ Object
- #getOneClickTransaction ⇒ Object
-
#initialize(params) ⇒ Webpay
constructor
método inicializar clase.
Constructor Details
#initialize(params) ⇒ Webpay
método inicializar clase
21 22 23 |
# File 'lib/webpay.rb', line 21 def initialize(params) @configuration = params end |
Instance Method Details
#getCaptureTransaction ⇒ Object
46 47 48 49 50 51 |
# File 'lib/webpay.rb', line 46 def getCaptureTransaction if @webpayCapture == nil @webpayCapture = WebpayCapture.new(@configuration) end return @webpayCapture end |
#getCompleteTransaction ⇒ Object
60 61 62 63 64 65 |
# File 'lib/webpay.rb', line 60 def getCompleteTransaction if @webpayCompleteTransaction == nil @webpayCompleteTransaction = WebpayComplete.new(@configuration) end return @webpayCompleteTransaction end |
#getMallNormalTransaction ⇒ Object
32 33 34 35 36 37 |
# File 'lib/webpay.rb', line 32 def getMallNormalTransaction if @webpayMallNormal == nil @webpayMallNormal = WebpayMallNormal.new(@configuration) end return @webpayMallNormal end |
#getNormalTransaction ⇒ Object
25 26 27 28 29 30 |
# File 'lib/webpay.rb', line 25 def getNormalTransaction if @webpayNormal == nil @webpayNormal = WebpayNormal.new(@configuration) end return @webpayNormal end |
#getNullifyTransaction ⇒ Object
39 40 41 42 43 44 |
# File 'lib/webpay.rb', line 39 def getNullifyTransaction if @webpayNullify == nil @webpayNullify = WebpayNullify.new(@configuration) end return @webpayNullify end |
#getOneClickTransaction ⇒ Object
53 54 55 56 57 58 |
# File 'lib/webpay.rb', line 53 def getOneClickTransaction if @webpayOneClick == nil @webpayOneClick = WebpayOneClick.new(@configuration) end return @webpayOneClick end |