Class: ActiveMerchant::PostData
- Inherits:
-
Hash
- Object
- Hash
- ActiveMerchant::PostData
show all
- Defined in:
- lib/active_merchant/post_data.rb
Instance Method Summary
collapse
Instance Method Details
#[]=(key, value) ⇒ Object
8
9
10
11
12
|
# File 'lib/active_merchant/post_data.rb', line 8
def []=(key, value)
return if value.blank? && !required?(key)
super
end
|
#to_post_data ⇒ Object
Also known as:
to_s
14
15
16
|
# File 'lib/active_merchant/post_data.rb', line 14
def to_post_data
collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join('&')
end
|