Class: ActiveMerchant::PostsData::CaseSensitiveHeaders
- Inherits:
-
Hash
- Object
- Hash
- ActiveMerchant::PostsData::CaseSensitiveHeaders
- Defined in:
- lib/active_merchant/posts_data.rb
Overview
This class is needed to play along with the Refinement done for Net::HTTP class so it can have a way to detect if the hash that represent the headers should use the case sensitive version of the headers or not.
Instance Method Summary collapse
Instance Method Details
#dup ⇒ Object
100 101 102 103 104 |
# File 'lib/active_merchant/posts_data.rb', line 100 def dup case_sensitive_dup = self.class.new each { |key, value| case_sensitive_dup[key] = value } case_sensitive_dup end |