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
- #album ⇒ Object
- #album=(v) ⇒ Object
- #band ⇒ Object
- #band=(v) ⇒ Object
- #bpm ⇒ Object
- #bpm=(v) ⇒ Object
- #comment ⇒ Object
- #comment=(v) ⇒ Object
-
#comment_frames ⇒ Object
Returns an array of comment frames.
- #composer ⇒ Object
- #composer=(v) ⇒ Object
- #conductor ⇒ Object
- #conductor=(v) ⇒ Object
- #date ⇒ Object
- #date=(v) ⇒ Object
- #encoded_by ⇒ Object
- #encoded_by=(v) ⇒ Object
- #genre ⇒ Object (also: #content_type)
- #genre=(v) ⇒ Object (also: #content_type=)
- #grouping ⇒ Object
- #grouping=(v) ⇒ Object
- #interpreted_by ⇒ Object (also: #remixed_by)
- #interpreted_by=(v) ⇒ Object (also: #remixed_by=)
- #language ⇒ Object
- #language=(v) ⇒ Object
- #lyricist ⇒ Object
- #lyricist=(v) ⇒ Object
- #lyrics ⇒ Object
- #lyrics=(v) ⇒ Object
- #part_of_set ⇒ Object (also: #disc)
- #part_of_set=(v) ⇒ Object (also: #disc=)
- #performer ⇒ Object (also: #artist)
- #performer=(v) ⇒ Object (also: #artist=)
- #publisher ⇒ Object
- #publisher=(v) ⇒ Object
- #subtitle ⇒ Object
- #subtitle=(v) ⇒ Object
- #time ⇒ Object
- #time=(v) ⇒ Object
- #title ⇒ Object
- #title=(v) ⇒ Object
- #track ⇒ Object
- #track=(v) ⇒ Object
- #year ⇒ Object
- #year=(v) ⇒ Object
Instance Method Details
#album ⇒ Object
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 |
#band ⇒ Object
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 |
#bpm ⇒ Object
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 |
#comment ⇒ Object
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_frames ⇒ Object
Returns an array of comment frames.
55 |
# File 'lib/id3lib/accessors.rb', line 55 def comment_frames() select{ |f| f[:id] == :COMM } end |
#composer ⇒ Object
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 |
#conductor ⇒ Object
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 |
#date ⇒ Object
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_by ⇒ Object
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 |
#genre ⇒ Object 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 |
#grouping ⇒ Object
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_by ⇒ Object 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 |
#language ⇒ Object
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 |
#lyricist ⇒ Object
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 |
#lyrics ⇒ Object
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_set ⇒ Object 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 |
#performer ⇒ Object 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 |
#publisher ⇒ Object
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 |
#subtitle ⇒ Object
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 |
#time ⇒ Object
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 |
#title ⇒ Object
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 |
#track ⇒ Object
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 |
#year ⇒ Object
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 |