Class: SmsBackupRenderer::MediaPart
- Inherits:
-
MessagePart
- Object
- MessagePart
- SmsBackupRenderer::MediaPart
- Defined in:
- lib/sms_backup_renderer/models.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the String content type for the message part such as ‘image/jpeg’.
-
#path ⇒ Object
readonly
Returns the String file path at which the content has been stored.
Instance Method Summary collapse
-
#initialize(content_type, path) ⇒ MediaPart
constructor
A new instance of MediaPart.
Constructor Details
#initialize(content_type, path) ⇒ MediaPart
Returns a new instance of MediaPart.
104 105 106 107 |
# File 'lib/sms_backup_renderer/models.rb', line 104 def initialize(content_type, path) @content_type = content_type @path = path end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the String content type for the message part such as ‘image/jpeg’.
99 100 101 |
# File 'lib/sms_backup_renderer/models.rb', line 99 def content_type @content_type end |
#path ⇒ Object (readonly)
Returns the String file path at which the content has been stored.
102 103 104 |
# File 'lib/sms_backup_renderer/models.rb', line 102 def path @path end |