Class: TaliaCore::DataTypes::MediaLink
- Inherits:
-
DataRecord
- Object
- ActiveRecord::Base
- DataRecord
- TaliaCore::DataTypes::MediaLink
- Defined in:
- lib/talia_core/data_types/media_link.rb
Overview
Data class that contains just a link to a remote data element (and no locally stored data at all). The uri for the link is stored in the location field.
Note: It is not possible to store data in media links, so all data-related methods will raise an exception
Instance Attribute Summary
Attributes inherited from DataRecord
Instance Method Summary collapse
Methods inherited from DataRecord
#content_string, #extract_mime_type, find_by_type_and_location!, find_data_records, #mime_type, #position, #reset, #seek, #size
Instance Method Details
#all_bytes ⇒ Object
12 13 14 |
# File 'lib/talia_core/data_types/media_link.rb', line 12 def all_bytes raise(RuntimeError, "Media Links have no data") end |
#get_byte(close_after_single_read = false) ⇒ Object
16 17 18 |
# File 'lib/talia_core/data_types/media_link.rb', line 16 def get_byte(close_after_single_read=false) raise(RuntimeRror, "Media Links have no data") end |