Class: TagLib::AudioTag
- Inherits:
-
Data
- Object
- Data
- TagLib::AudioTag
- Defined in:
- lib/taglib_simple/audio_tag.rb
Overview
Represents a normalised subset of tags
Instance Attribute Summary collapse
-
#album ⇒ String
readonly
The album name.
-
#artist ⇒ String
readonly
The artist name.
-
#genre ⇒ String
readonly
The genre of the track.
-
#title ⇒ String
readonly
The title of the track.
-
#track ⇒ Integer
readonly
The track number.
-
#year ⇒ Integer
readonly
The release year.
Class Method Summary collapse
Instance Method Summary collapse
-
#to_h ⇒ Hash<Symbol, <String,Integer>>
The tag values as a hash, excluding entries with nil values.
Instance Attribute Details
#album ⇒ String (readonly)
Returns The album name.
|
# File 'lib/taglib_simple/audio_tag.rb', line 15
|
#artist ⇒ String (readonly)
Returns The artist name.
|
# File 'lib/taglib_simple/audio_tag.rb', line 12
|
#genre ⇒ String (readonly)
Returns The genre of the track.
|
# File 'lib/taglib_simple/audio_tag.rb', line 18
|
#title ⇒ String (readonly)
Returns The title of the track.
|
# File 'lib/taglib_simple/audio_tag.rb', line 9
|
#track ⇒ Integer (readonly)
Returns The track number.
|
# File 'lib/taglib_simple/audio_tag.rb', line 24
|
#year ⇒ Integer (readonly)
Returns The release year.
|
# File 'lib/taglib_simple/audio_tag.rb', line 21
|
Class Method Details
Instance Method Details
#to_h ⇒ Hash<Symbol, <String,Integer>>
Returns the tag values as a hash, excluding entries with nil values.
62 63 64 65 |
# File 'lib/taglib_simple/audio_tag.rb', line 62 def to_h # do not expose nil entries super.compact end |