Module: Hearken::Tagged
- Included in:
- Indexing::Executor, Track
- Defined in:
- lib/hearken/tagged.rb
Constant Summary collapse
- FILE_FIELDS =
%w[path timestamp].freeze
- TAG_FIELDS =
%w[album track title artist time date albumartist puid mbartistid mbalbumid mbalbumartistid asin].freeze
- FIELDS =
FILE_FIELDS + TAG_FIELDS
Instance Method Summary collapse
Instance Method Details
#no_tag_fields? ⇒ Boolean
11 12 13 |
# File 'lib/hearken/tagged.rb', line 11 def no_tag_fields? TAG_FIELDS.select { |field| send field }.empty? end |
#to_a ⇒ Object
15 16 17 |
# File 'lib/hearken/tagged.rb', line 15 def to_a FIELDS.map { |field| send field } end |