class SidekiqProfilingMiddleware::S3::Object

Attributes

bucket[R]
key[R]

Public Class Methods

new(bucket:, key:) click to toggle source
Calls superclass method
# File lib/sidekiq_profiling_middleware/s3.rb, line 8
def initialize(bucket:, key:)
  @bucket = bucket
  @key = key

  super()
end

Public Instance Methods

upload() click to toggle source
# File lib/sidekiq_profiling_middleware/s3.rb, line 15
def upload
  rewind

  S3.client.put_object(bucket: bucket, key: key, body: self)
end