Class: LimitedRed::Adapter::HttPartyAdapter
- Inherits:
-
Object
- Object
- LimitedRed::Adapter::HttPartyAdapter
- Includes:
- HTTParty
- Defined in:
- lib/limited_red/adapter/httparty.rb
Class Method Summary collapse
Class Method Details
.encode_and_compress(data) ⇒ Object
21 22 23 24 |
# File 'lib/limited_red/adapter/httparty.rb', line 21 def self.encode_and_compress(data) compressed_result = Gzip.compress(data) Base64.encode64(compressed_result) end |