Class: ID3Tag::Frames::V2::CommentsFrame

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

Constant Summary

Constants inherited from TextFrame

TextFrame::ENCODING_MAP, TextFrame::NULL_BYTE, 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 BasicFrame

#compressed?, #data_length_indicator?, #encrypted?, #encryption_id, #final_size, #group_id, #grouped?, #initialize, #inspect, #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



19
20
21
# File 'lib/id3tag/frames/v2/comments_frame.rb', line 19

def content
  text
end

#descriptionObject



11
12
13
# File 'lib/id3tag/frames/v2/comments_frame.rb', line 11

def description
  @desciption ||= encoded_text_and_content_parts.first
end

#inspectable_contentObject



23
24
25
# File 'lib/id3tag/frames/v2/comments_frame.rb', line 23

def inspectable_content
  content
end

#languageObject



7
8
9
# File 'lib/id3tag/frames/v2/comments_frame.rb', line 7

def language
  @language ||= get_language
end

#textObject



15
16
17
# File 'lib/id3tag/frames/v2/comments_frame.rb', line 15

def text
  @text ||= encoded_text_and_content_parts.last
end