class MkvToolNix::Types::Info::Attachment

Attributes

content_type[RW]
description[RW]
file_name[RW]
id[RW]
size_in_b[RW]
uid[RW]

Public Class Methods

create(hash) click to toggle source
# File lib/mkvtoolnix/types/info/attachment.rb, line 10
def self.create(hash)
  props = hash['properties']
  new(id: hash['id'], uid: props['uid'], file_name: hash['file_name'], description: hash['description'],
      content_type: hash['content_type'], size_in_b: hash['size'])
end
new(id:, uid:, file_name:, description:, content_type:, size_in_b:) click to toggle source
# File lib/mkvtoolnix/types/info/attachment.rb, line 16
def initialize(id:, uid:, file_name:, description:, content_type:, size_in_b:)
  @id = id
  @uid = uid
  @file_name = file_name
  @description = description
  @content_type = content_type
  @size_in_b = size_in_b
end