Class: BuzzImage::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
# File 'lib/buzz_image/configuration.rb', line 5

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

Instance Attribute Details

#buzz_levelObject

Returns the value of attribute buzz_level.



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

def buzz_level
  @buzz_level
end

#heightObject

Returns the value of attribute height.



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

def height
  @height
end

#widthObject

Returns the value of attribute width.



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

def width
  @width
end

Instance Method Details

#set_options(&block) ⇒ Object

Override default options with the provided ones in block



12
13
14
# File 'lib/buzz_image/configuration.rb', line 12

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