Module: Id3Taginator::Frames::Picture::PictureType
- Defined in:
- lib/id3taginator/frames/picture/apic_picture_frame.rb
Constant Summary collapse
- OTHER =
0x00- PIXELS_32X32_FILE_ICON__PNG_ONLY =
0x01- OTHER_FILE_ICON =
0x02- COVER_FRONT =
0x03- COVER_BACK =
0x04- LEAFLET_PAGE =
0x05- MEDIA =
0x06- LEAD_ARTIST =
0x07- ARTIST =
0x08- CONDUCTOR =
0x09- BAND =
0x0A- COMPOSER =
0x0B- LYRICIST =
0x0C- RECORDING_LOCATION =
0x0D- DURING_RECORDING =
0x0E- DURING_PERFORMANCE =
0x0F- VIDEO_SCREEN_CAPTURE =
0x10- A_BRIGHT_COLORED_FISH =
0x11- ILLUSTRATION =
0x12- BAND_LOGOTYPE =
0x13- PUBLISHER_LOGOTYPE =
0x14
Class Method Summary collapse
Class Method Details
.type(type) ⇒ Object
87 88 89 90 91 |
# File 'lib/id3taginator/frames/picture/apic_picture_frame.rb', line 87 def self.type(type) return OTHER unless valid?(type) const_get(type) end |
.type_by_value(value) ⇒ Object
93 94 95 96 |
# File 'lib/id3taginator/frames/picture/apic_picture_frame.rb', line 93 def self.type_by_value(value) res = constants.find { |c| const_get(c) == value } res.nil? ? :OTHER : res end |
.valid?(type) ⇒ Boolean
98 99 100 101 102 |
# File 'lib/id3taginator/frames/picture/apic_picture_frame.rb', line 98 def self.valid?(type) const_get(type) rescue NameError false end |