Class: EasyTag::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/easytag/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Image

Returns a new instance of Image.



60
61
62
63
# File 'lib/easytag/image.rb', line 60

def initialize(data)
  self.data = data
  type = ImageType::None
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



58
59
60
# File 'lib/easytag/image.rb', line 58

def data
  @data
end

#descObject

Returns the value of attribute desc.



58
59
60
# File 'lib/easytag/image.rb', line 58

def desc
  @desc
end

#heightObject (readonly)

Returns the value of attribute height.



57
58
59
# File 'lib/easytag/image.rb', line 57

def height
  @height
end

#mime_typeObject

Returns the value of attribute mime_type.



58
59
60
# File 'lib/easytag/image.rb', line 58

def mime_type
  @mime_type
end

#sizeObject (readonly)

Returns the value of attribute size.



57
58
59
# File 'lib/easytag/image.rb', line 57

def size
  @size
end

#typeObject

Returns the value of attribute type.



58
59
60
# File 'lib/easytag/image.rb', line 58

def type
  @type
end

#type_sObject

Returns the value of attribute type_s.



58
59
60
# File 'lib/easytag/image.rb', line 58

def type_s
  @type_s
end

#widthObject (readonly)

Returns the value of attribute width.



57
58
59
# File 'lib/easytag/image.rb', line 57

def width
  @width
end