Class: ID3Tag::Frames::V2::UserTextFrame

Inherits:
TextFrame show all
Defined in:
lib/id3tag/frames/v2/user_text_frame.rb

Constant Summary

Constants inherited from TextFrame

TextFrame::ENCODING_MAP, TextFrame::UnsupportedTextEncoding

Constants inherited from BasicFrame

BasicFrame::DECOMPRESSED_SIZE_BYTE_COUNT, BasicFrame::GROUP_BYTE_COUNT

Instance Attribute Summary

Attributes inherited from BasicFrame

#id, #raw_content

Instance Method Summary collapse

Methods inherited from TextFrame

#inspectable_content

Methods inherited from BasicFrame

#compressed?, #data_length_indicator?, #encrypted?, #encryption_id, #final_size, #group_id, #grouped?, #initialize, #inspect, #inspectable_content, #preserve_on_file_alteration?, #preserve_on_tag_alteration?, #read_additional_info_byte, #read_only?, #unsynchronised?, #usable_content

Constructor Details

This class inherits a constructor from ID3Tag::Frames::V2::BasicFrame

Instance Method Details

#contentObject



6
7
8
# File 'lib/id3tag/frames/v2/user_text_frame.rb', line 6

def content
  StringUtil.cut_at_null_byte(content_parts.last)
end

#descriptionObject



10
11
12
# File 'lib/id3tag/frames/v2/user_text_frame.rb', line 10

def description
  content_parts.first
end