Module: ID3Lib::Accessors

Included in:
Tag
Defined in:
lib/id3lib/accessors.rb

Overview

The Accessors module defines accessor methods for ID3 text frames.

Most used accessors

Here’s a list of the most used accessors:

  • #title

  • #performer or #artist

  • #album

  • #genre or #content_type

  • #year

  • #track

  • #part_of_set or #disc

  • #comment or #comment_frames

  • #composer

  • #bpm

Instance Method Summary collapse

Instance Method Details

#albumObject



32
# File 'lib/id3lib/accessors.rb', line 32

def album()       frame_text(:TALB) end

#album=(v) ⇒ Object



33
# File 'lib/id3lib/accessors.rb', line 33

def album=(v) set_frame_text(:TALB, v) end

#bandObject



84
# File 'lib/id3lib/accessors.rb', line 84

def band()       frame_text(:TPE2) end

#band=(v) ⇒ Object



85
# File 'lib/id3lib/accessors.rb', line 85

def band=(v) set_frame_text(:TPE2, v) end

#bpmObject



63
# File 'lib/id3lib/accessors.rb', line 63

def bpm()       frame_text(:TBPM) end

#bpm=(v) ⇒ Object



64
# File 'lib/id3lib/accessors.rb', line 64

def bpm=(v) set_frame_text(:TBPM, v.to_s) end

#commentObject



51
# File 'lib/id3lib/accessors.rb', line 51

def comment()       frame_text(:COMM) end

#comment=(v) ⇒ Object



52
# File 'lib/id3lib/accessors.rb', line 52

def comment=(v) set_frame_text(:COMM, v) end

#comment_framesObject

Returns an array of comment frames.



55
# File 'lib/id3lib/accessors.rb', line 55

def comment_frames() select{ |f| f[:id] == :COMM } end

#composerObject



57
# File 'lib/id3lib/accessors.rb', line 57

def composer()       frame_text(:TCOM) end

#composer=(v) ⇒ Object



58
# File 'lib/id3lib/accessors.rb', line 58

def composer=(v) set_frame_text(:TCOM, v) end

#conductorObject



87
# File 'lib/id3lib/accessors.rb', line 87

def conductor()       frame_text(:TPE3) end

#conductor=(v) ⇒ Object



88
# File 'lib/id3lib/accessors.rb', line 88

def conductor=(v) set_frame_text(:TPE3, v) end

#dateObject



69
# File 'lib/id3lib/accessors.rb', line 69

def date()       frame_text(:TDAT) end

#date=(v) ⇒ Object



70
# File 'lib/id3lib/accessors.rb', line 70

def date=(v) set_frame_text(:TDAT, v) end

#encoded_byObject



98
# File 'lib/id3lib/accessors.rb', line 98

def encoded_by()       frame_text(:TENC) end

#encoded_by=(v) ⇒ Object



99
# File 'lib/id3lib/accessors.rb', line 99

def encoded_by=(v) set_frame_text(:TENC, v) end

#genreObject Also known as: content_type



35
# File 'lib/id3lib/accessors.rb', line 35

def genre()       frame_text(:TCON) end

#genre=(v) ⇒ Object Also known as: content_type=



36
# File 'lib/id3lib/accessors.rb', line 36

def genre=(v) set_frame_text(:TCON, v) end

#groupingObject



60
# File 'lib/id3lib/accessors.rb', line 60

def grouping()       frame_text(:TIT1) end

#grouping=(v) ⇒ Object



61
# File 'lib/id3lib/accessors.rb', line 61

def grouping=(v) set_frame_text(:TIT1, v) end

#interpreted_byObject Also known as: remixed_by



90
# File 'lib/id3lib/accessors.rb', line 90

def interpreted_by()       frame_text(:TPE4) end

#interpreted_by=(v) ⇒ Object Also known as: remixed_by=



91
# File 'lib/id3lib/accessors.rb', line 91

def interpreted_by=(v) set_frame_text(:TPE4, v) end

#languageObject



75
# File 'lib/id3lib/accessors.rb', line 75

def language()       frame_text(:TLAN) end

#language=(v) ⇒ Object



76
# File 'lib/id3lib/accessors.rb', line 76

def language=(v) set_frame_text(:TLAN, v) end

#lyricistObject



81
# File 'lib/id3lib/accessors.rb', line 81

def lyricist()       frame_text(:TEXT) end

#lyricist=(v) ⇒ Object



82
# File 'lib/id3lib/accessors.rb', line 82

def lyricist=(v) set_frame_text(:TEXT, v) end

#lyricsObject



78
# File 'lib/id3lib/accessors.rb', line 78

def lyrics()       frame_text(:USLT) end

#lyrics=(v) ⇒ Object



79
# File 'lib/id3lib/accessors.rb', line 79

def lyrics=(v) set_frame_text(:USLT, v) end

#part_of_setObject Also known as: disc



46
# File 'lib/id3lib/accessors.rb', line 46

def part_of_set() frame_text(:TPOS) end

#part_of_set=(v) ⇒ Object Also known as: disc=



47
# File 'lib/id3lib/accessors.rb', line 47

def part_of_set=(v) set_frame_text(:TPOS, v) end

#performerObject Also known as: artist



27
# File 'lib/id3lib/accessors.rb', line 27

def performer()       frame_text(:TPE1) end

#performer=(v) ⇒ Object Also known as: artist=



28
# File 'lib/id3lib/accessors.rb', line 28

def performer=(v) set_frame_text(:TPE1, v) end

#publisherObject



95
# File 'lib/id3lib/accessors.rb', line 95

def publisher()       frame_text(:TPUB) end

#publisher=(v) ⇒ Object



96
# File 'lib/id3lib/accessors.rb', line 96

def publisher=(v) set_frame_text(:TPUB, v) end

#subtitleObject



66
# File 'lib/id3lib/accessors.rb', line 66

def subtitle()       frame_text(:TIT3) end

#subtitle=(v) ⇒ Object



67
# File 'lib/id3lib/accessors.rb', line 67

def subtitle=(v) set_frame_text(:TIT3, v) end

#timeObject



72
# File 'lib/id3lib/accessors.rb', line 72

def time()       frame_text(:TIME) end

#time=(v) ⇒ Object



73
# File 'lib/id3lib/accessors.rb', line 73

def time=(v) set_frame_text(:TIME, v) end

#titleObject



24
# File 'lib/id3lib/accessors.rb', line 24

def title()       frame_text(:TIT2) end

#title=(v) ⇒ Object



25
# File 'lib/id3lib/accessors.rb', line 25

def title=(v) set_frame_text(:TIT2, v) end

#trackObject



43
# File 'lib/id3lib/accessors.rb', line 43

def track() frame_text(:TRCK) end

#track=(v) ⇒ Object



44
# File 'lib/id3lib/accessors.rb', line 44

def track=(v) set_frame_text(:TRCK, v) end

#yearObject



40
# File 'lib/id3lib/accessors.rb', line 40

def year() frame_text(:TYER) end

#year=(v) ⇒ Object



41
# File 'lib/id3lib/accessors.rb', line 41

def year=(v) set_frame_text(:TYER, v) end