Module: CloudPayments::Namespaces
- Included in:
- Client
- Defined in:
- lib/cloud_payments/namespaces.rb,
lib/cloud_payments/namespaces/base.rb,
lib/cloud_payments/namespaces/cards.rb,
lib/cloud_payments/namespaces/kassa.rb,
lib/cloud_payments/namespaces/orders.rb,
lib/cloud_payments/namespaces/tokens.rb,
lib/cloud_payments/namespaces/payments.rb,
lib/cloud_payments/namespaces/apple_pay.rb,
lib/cloud_payments/namespaces/subscriptions.rb
Defined Under Namespace
Classes: ApplePay, Base, Cards, Kassa, Orders, Payments, Subscriptions, Tokens
Instance Method Summary
collapse
Instance Method Details
#apple_pay ⇒ Object
29
30
31
|
# File 'lib/cloud_payments/namespaces.rb', line 29
def apple_pay
ApplePay.new(self)
end
|
#kassa ⇒ Object
17
18
19
|
# File 'lib/cloud_payments/namespaces.rb', line 17
def kassa
Kassa.new(self)
end
|
#orders ⇒ Object
25
26
27
|
# File 'lib/cloud_payments/namespaces.rb', line 25
def orders
Orders.new(self)
end
|
#payments ⇒ Object
13
14
15
|
# File 'lib/cloud_payments/namespaces.rb', line 13
def payments
Payments.new(self)
end
|
#ping ⇒ Object
33
34
35
36
37
|
# File 'lib/cloud_payments/namespaces.rb', line 33
def ping
!!(perform_request('/test').body || {})[:success]
rescue ::Faraday::ConnectionFailed, ::Faraday::TimeoutError, CloudPayments::Client::ServerError => e
false
end
|
#subscriptions ⇒ Object
21
22
23
|
# File 'lib/cloud_payments/namespaces.rb', line 21
def subscriptions
Subscriptions.new(self)
end
|