krists/id3tag

View on GitHub
lib/id3tag/frames/v1/text_frame.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ID3Tag
  module Frames
    module V1
      class TextFrame
        attr_reader :id

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

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

        private

        def source_encoding
          Encoding::ISO8859_1
        end
      end
    end
  end
end