Class: Mobilepay::Client
- Inherits:
-
Object
- Object
- Mobilepay::Client
- Includes:
- CancelReservation, CaptureAmount, PaymentStatus, PaymentTransactions, RefundAmount, Reservations, Requests, Requests::GenerateSignature
- Defined in:
- lib/mobilepay/client.rb,
lib/mobilepay/client/reservations.rb,
lib/mobilepay/client/refund_amount.rb,
lib/mobilepay/client/capture_amount.rb,
lib/mobilepay/client/payment_status.rb,
lib/mobilepay/client/cancel_reservation.rb,
lib/mobilepay/client/payment_transactions.rb
Defined Under Namespace
Modules: CancelReservation, CaptureAmount, PaymentStatus, PaymentTransactions, RefundAmount, Reservations
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
readonly
Returns the value of attribute base_uri.
-
#merchant_id ⇒ Object
readonly
Returns the value of attribute merchant_id.
-
#privatekey ⇒ Object
readonly
Returns the value of attribute privatekey.
-
#subscription_key ⇒ Object
readonly
Returns the value of attribute subscription_key.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Requests::GenerateSignature
Methods included from CancelReservation
Methods included from CaptureAmount
Methods included from RefundAmount
Methods included from Reservations
Methods included from PaymentTransactions
Methods included from PaymentStatus
Constructor Details
#initialize(args = {}) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/mobilepay/client.rb', line 24 def initialize(args = {}) @merchant_id = args[:merchant_id] || '' @subscription_key = args[:subscription_key] || '' @privatekey = args[:privatekey] @base_uri = 'https://api.mobeco.dk/appswitch/api/v1' end |
Instance Attribute Details
#base_uri ⇒ Object (readonly)
Returns the value of attribute base_uri.
22 23 24 |
# File 'lib/mobilepay/client.rb', line 22 def base_uri @base_uri end |
#merchant_id ⇒ Object (readonly)
Returns the value of attribute merchant_id.
22 23 24 |
# File 'lib/mobilepay/client.rb', line 22 def merchant_id @merchant_id end |
#privatekey ⇒ Object (readonly)
Returns the value of attribute privatekey.
22 23 24 |
# File 'lib/mobilepay/client.rb', line 22 def privatekey @privatekey end |
#subscription_key ⇒ Object (readonly)
Returns the value of attribute subscription_key.
22 23 24 |
# File 'lib/mobilepay/client.rb', line 22 def subscription_key @subscription_key end |