Class: TagLib::ID3v2::Frame

Inherits:
Object
  • Object
show all
Defined in:
docs/taglib/id3v2.rb

Overview

The base class for all ID3v2 frames.

In ID3v2 all frames are identified by a frame ID, such as TIT2 or APIC. The data in the frames is different depending on the frame type, which is why there is a subclass for each type.

The most common frame type is the text identification frame. All frame IDs of this type begin with T, for example TALB for the album. See TextIdentificationFrame.

Then there are the URL link frames, which begin with W, see UrlLinkFrame.

Finally, there are some specialized frame types and their corresponding classes:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#frame_idString (readonly)

Returns frame ID.

Returns:

  • (String)

    frame ID



191
192
193
# File 'docs/taglib/id3v2.rb', line 191

def frame_id
  @frame_id
end

Instance Method Details

#to_stringString

Returns a subclass-specific string representation.

Returns:

  • (String)

    a subclass-specific string representation



194
195
# File 'docs/taglib/id3v2.rb', line 194

def to_string
end