Class: Appsignal::ZippedPayload
- Inherits:
-
Object
- Object
- Appsignal::ZippedPayload
- Defined in:
- lib/appsignal/zipped_payload.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(given_body) ⇒ ZippedPayload
constructor
A new instance of ZippedPayload.
Constructor Details
#initialize(given_body) ⇒ ZippedPayload
Returns a new instance of ZippedPayload.
5 6 7 8 9 10 |
# File 'lib/appsignal/zipped_payload.rb', line 5 def initialize(given_body) @body = Zlib::Deflate.deflate( Appsignal::ZippedPayload.json_generate(given_body), Zlib::BEST_SPEED ) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/appsignal/zipped_payload.rb', line 3 def body @body end |