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
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
9 10 11 |
# File 'lib/talia_core/data_types/media_link.rb', line 9 def all_bytes raise(RuntimeError, "Media Links have no data") end |
#get_byte(close_after_single_read = false) ⇒ Object
13 14 15 |
# File 'lib/talia_core/data_types/media_link.rb', line 13 def get_byte(close_after_single_read=false) raise(RuntimeRror, "Media Links have no data") end |