class MomoPay::QueryString

Attributes

data[R]

Public Class Methods

new(data) click to toggle source
# File lib/momo_pay/query_string.rb, line 4
def initialize(data)
  @data = data
end

Public Instance Methods

to_s(keys) click to toggle source
# File lib/momo_pay/query_string.rb, line 8
def to_s(keys)
  keys.map{|key| "#{key}=#{data[key.to_s] || data[key.to_sym]}"}.join('&')
end