Method: Sentry::Attachment#initialize
- Defined in:
- lib/sentry/attachment.rb
#initialize(bytes: nil, filename: nil, content_type: nil, path: nil) ⇒ Attachment
Returns a new instance of Attachment.
9 10 11 12 13 14 |
# File 'lib/sentry/attachment.rb', line 9 def initialize(bytes: nil, filename: nil, content_type: nil, path: nil) @bytes = bytes @filename = filename || infer_filename(path) @path = path @content_type = content_type end |