Class: Payture::Ewallet::MakePayUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/payture/ewallet/make_pay_url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (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