Class: ID3Tag::Frames::V1::TextFrame
- Inherits:
-
Object
- Object
- ID3Tag::Frames::V1::TextFrame
- Defined in:
- lib/id3tag/frames/v1/text_frame.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(id, content) ⇒ TextFrame
constructor
A new instance of TextFrame.
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
#id ⇒ Object (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
#content ⇒ Object
11 12 13 |
# File 'lib/id3tag/frames/v1/text_frame.rb', line 11 def content @content.encode(destination_encoding, source_encoding) end |