Class: ImageZoomer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/image_zoomer/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/image_zoomer/configuration.rb', line 7

def initialize
  @width = 90
  @height = 90
  @zoom_level = 1.5
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



4
5
6
# File 'lib/image_zoomer/configuration.rb', line 4

def height
  @height
end

#widthObject

Returns the value of attribute width.



3
4
5
# File 'lib/image_zoomer/configuration.rb', line 3

def width
  @width
end

#zoom_levelObject

Returns the value of attribute zoom_level.



5
6
7
# File 'lib/image_zoomer/configuration.rb', line 5

def zoom_level
  @zoom_level
end

Instance Method Details

#set_options(&block) ⇒ Object



13
14
15
# File 'lib/image_zoomer/configuration.rb', line 13

def set_options(&block)
  block.yield(self)
end