Class: Payture::Ewallet::Client
- Inherits:
-
Object
- Object
- Payture::Ewallet::Client
- Defined in:
- lib/payture/ewallet/client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #charge(**args) ⇒ Object
- #init(**args) ⇒ Object
-
#initialize(**options) ⇒ Client
constructor
A new instance of Client.
- #pay_status(**args) ⇒ Object
- #pay_url(session_id:) ⇒ Object
- #refund(**args) ⇒ Object
- #unblock(**args) ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/payture/ewallet/client.rb', line 5 def config @config end |
Instance Method Details
#charge(**args) ⇒ Object
19 20 21 |
# File 'lib/payture/ewallet/client.rb', line 19 def charge(**args) Methods::Charge.new(config).call(**args) end |
#init(**args) ⇒ Object
11 12 13 |
# File 'lib/payture/ewallet/client.rb', line 11 def init(**args) Methods::Init.new(config).call(**args) end |
#pay_status(**args) ⇒ Object
31 32 33 |
# File 'lib/payture/ewallet/client.rb', line 31 def pay_status(**args) Methods::PayStatus.new(config).call(**args) end |
#pay_url(session_id:) ⇒ Object
15 16 17 |
# File 'lib/payture/ewallet/client.rb', line 15 def pay_url(session_id:) MakePayUrl.new(config).call(session_id) end |