krists/id3tag

View on GitHub
lib/id3tag/frames/v2/unique_file_id_frame.rb

Summary

Maintainability
A
0 mins
Test Coverage
module  ID3Tag
  module Frames
    module  V2
      class UniqueFileIdFrame < BasicFrame
        def owner_identifier
          content_split_apart_by_null_byte.first
        end

        def content
          content_split_apart_by_null_byte.last
        end

        def inspectable_content
          "#{owner_identifier}"
        end

        private

        def content_split_apart_by_null_byte
          StringUtil.split_by_null_byte(usable_content)
        end
      end
    end
  end
end