Class: Payture::Ewallet::MakePayUrl
- Inherits:
-
Object
- Object
- Payture::Ewallet::MakePayUrl
- Defined in:
- lib/payture/ewallet/make_pay_url.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #call(session_id) ⇒ Object
-
#initialize(config) ⇒ MakePayUrl
constructor
A new instance of MakePayUrl.
Constructor Details
#initialize(config) ⇒ MakePayUrl
Returns a new instance of MakePayUrl.
7 8 9 |
# File 'lib/payture/ewallet/make_pay_url.rb', line 7 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/payture/ewallet/make_pay_url.rb', line 5 def config @config end |
Instance Method Details
#call(session_id) ⇒ Object
11 12 13 |
# File 'lib/payture/ewallet/make_pay_url.rb', line 11 def call(session_id) "#{config.base_url}/Pay?SessionId=#{session_id}" end |