Class: ID3Tag::Frames::V1::TextFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/id3tag/frames/v1/text_frame.rb

Direct Known Subclasses

CommentsFrame

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, content) ⇒ TextFrame

Returns a new instance of TextFrame.



7
8
9
# File 'lib/id3tag/frames/v1/text_frame.rb', line 7

def initialize(id, content)
 @id, @content = id, content
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/id3tag/frames/v1/text_frame.rb', line 5

def id
  @id
end

Instance Method Details

#contentObject



11
12
13
# File 'lib/id3tag/frames/v1/text_frame.rb', line 11

def content
  @content.encode(destination_encoding, source_encoding)
end