Class: ImageZoomer::Configuration
- Inherits:
-
Object
- Object
- ImageZoomer::Configuration
- Defined in:
- lib/image_zoomer/configuration.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
-
#zoom_level ⇒ Object
Returns the value of attribute zoom_level.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #set_options(&block) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/image_zoomer/configuration.rb', line 4 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/image_zoomer/configuration.rb', line 3 def width @width end |
#zoom_level ⇒ Object
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 (&block) block.yield(self) end |