Module: GoPay
- Defined in:
- lib/gopay.rb,
lib/gopay/error.rb,
lib/gopay/client.rb,
lib/gopay/gateway.rb,
lib/gopay/payment.rb,
lib/gopay/version.rb
Defined Under Namespace
Classes: Client, Error, Gateway, Payment, Version
Class Attribute Summary collapse
-
.client_id ⇒ Object
Returns the value of attribute client_id.
-
.client_secret ⇒ Object
Returns the value of attribute client_secret.
-
.gate ⇒ Object
Returns the value of attribute gate.
-
.goid ⇒ Object
Returns the value of attribute goid.
-
.notification_host ⇒ Object
Returns the value of attribute notification_host.
-
.return_host ⇒ Object
Returns the value of attribute return_host.
Class Method Summary collapse
Class Attribute Details
.client_id ⇒ Object
Returns the value of attribute client_id.
8 9 10 |
# File 'lib/gopay.rb', line 8 def client_id @client_id end |
.client_secret ⇒ Object
Returns the value of attribute client_secret.
8 9 10 |
# File 'lib/gopay.rb', line 8 def client_secret @client_secret end |
.gate ⇒ Object
Returns the value of attribute gate.
8 9 10 |
# File 'lib/gopay.rb', line 8 def gate @gate end |
.goid ⇒ Object
Returns the value of attribute goid.
8 9 10 |
# File 'lib/gopay.rb', line 8 def goid @goid end |
.notification_host ⇒ Object
Returns the value of attribute notification_host.
8 9 10 |
# File 'lib/gopay.rb', line 8 def notification_host @notification_host end |
.return_host ⇒ Object
Returns the value of attribute return_host.
8 9 10 |
# File 'lib/gopay.rb', line 8 def return_host @return_host end |
Class Method Details
.configure {|_self| ... } ⇒ Object
11 12 13 |
# File 'lib/gopay.rb', line 11 def self.configure yield self end |
.request(method, path, body_parameters: {}) ⇒ Object
15 16 17 18 |
# File 'lib/gopay.rb', line 15 def self.request(method, path, body_parameters: {}) client = GoPay::Client.new({gate: gate, client_id: client_id, goid: goid, client_secret: client_secret}) client.request(method, path, body_parameters: body_parameters) end |