Class: ThumbnailClass

Inherits:
Object
  • Object
show all
Defined in:
lib/httpimagestore/thumbnail_class.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, method, width, height, format = 'JPEG', options = {}) ⇒ ThumbnailClass

Returns a new instance of ThumbnailClass.



2
3
4
5
6
7
8
9
# File 'lib/httpimagestore/thumbnail_class.rb', line 2

def initialize(name, method, width, height, format = 'JPEG', options = {})
	@name = name
	@method = method
	@width = width
	@height = height 
	@format = format
	@options = options
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



11
12
13
# File 'lib/httpimagestore/thumbnail_class.rb', line 11

def format
  @format
end

#heightObject (readonly)

Returns the value of attribute height.



11
12
13
# File 'lib/httpimagestore/thumbnail_class.rb', line 11

def height
  @height
end

#methodObject (readonly)

Returns the value of attribute method.



11
12
13
# File 'lib/httpimagestore/thumbnail_class.rb', line 11

def method
  @method
end

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/httpimagestore/thumbnail_class.rb', line 11

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



11
12
13
# File 'lib/httpimagestore/thumbnail_class.rb', line 11

def options
  @options
end

#widthObject (readonly)

Returns the value of attribute width.



11
12
13
# File 'lib/httpimagestore/thumbnail_class.rb', line 11

def width
  @width
end