Class: AppleData::Models::IMG4::Tag

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/apple_data/models/img4/tag.rb

Overview

Generic IMG4 DER "tag"

Direct Known Subclasses

Object, Property

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key.



8
9
10
# File 'lib/apple_data/models/img4/tag.rb', line 8

def key
  @key
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/apple_data/models/img4/tag.rb', line 17

def to_s
  name || title || description || key
end

#to_symObject



21
22
23
# File 'lib/apple_data/models/img4/tag.rb', line 21

def to_sym
  to_s.to_sym
end