Class: Glass::TimelineItem::Attachment
- Inherits:
-
Object
- Object
- Glass::TimelineItem::Attachment
- Defined in:
- lib/glass/timeline/timeline_item.rb
Overview
Represents media content, such as a photo, that can be attached to a timeline item.
Constant Summary collapse
- TYPE_IMAGE =
'image/*'- TYPE_VIDEO =
'video/*'- TYPE_AUDIO =
'audio/*'
Instance Attribute Summary collapse
-
#contentType ⇒ Object
The MIME type of the attachment.
-
#contentUrl ⇒ Object
The URL for the content.
-
#id ⇒ Object
readonly
The ID of the attachment.
-
#isProcessingContent ⇒ Object
readonly
Indicates that the contentUrl is not available because the attachment content is still being processed.
Instance Attribute Details
#contentType ⇒ Object
The MIME type of the attachment. (supported content types are ‘image/*’, ‘video/*’ and ‘audio/*’).
245 246 247 |
# File 'lib/glass/timeline/timeline_item.rb', line 245 def contentType @contentType end |
#contentUrl ⇒ Object
The URL for the content.
254 255 256 |
# File 'lib/glass/timeline/timeline_item.rb', line 254 def contentUrl @contentUrl end |
#id ⇒ Object (readonly)
The ID of the attachment.
239 240 241 |
# File 'lib/glass/timeline/timeline_item.rb', line 239 def id @id end |
#isProcessingContent ⇒ Object (readonly)
Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
260 261 262 |
# File 'lib/glass/timeline/timeline_item.rb', line 260 def isProcessingContent @isProcessingContent end |