Class: Glass::TimelineItem::Attachment

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#contentTypeObject

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

#contentUrlObject

The URL for the content.



254
255
256
# File 'lib/glass/timeline/timeline_item.rb', line 254

def contentUrl
  @contentUrl
end

#idObject (readonly)

The ID of the attachment.



239
240
241
# File 'lib/glass/timeline/timeline_item.rb', line 239

def id
  @id
end

#isProcessingContentObject (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