Class: Adyen::Payment
- Inherits:
-
Object
- Object
- Adyen::Payment
- Defined in:
- lib/adyen/services/payment.rb
Constant Summary collapse
- DEFAULT_VERSION =
68
Instance Attribute Summary collapse
-
#service ⇒ Object
Returns the value of attribute service.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #general_api ⇒ Object
-
#initialize(client, version = DEFAULT_VERSION) ⇒ Payment
constructor
A new instance of Payment.
- #modifications_api ⇒ Object
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ Payment
Returns a new instance of Payment.
9 10 11 12 13 |
# File 'lib/adyen/services/payment.rb', line 9 def initialize(client, version = DEFAULT_VERSION) @service = 'Payment' @client = client @version = version end |
Instance Attribute Details
#service ⇒ Object
Returns the value of attribute service.
6 7 8 |
# File 'lib/adyen/services/payment.rb', line 6 def service @service end |
#version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/adyen/services/payment.rb', line 6 def version @version end |
Instance Method Details
#general_api ⇒ Object
15 16 17 |
# File 'lib/adyen/services/payment.rb', line 15 def general_api @general_api ||= Adyen::GeneralApi.new(@client, @version) end |
#modifications_api ⇒ Object
19 20 21 |
# File 'lib/adyen/services/payment.rb', line 19 def modifications_api @modifications_api ||= Adyen::ModificationsApi.new(@client, @version) end |