Class: RGallery::PhotoConfig
- Inherits:
-
Object
- Object
- RGallery::PhotoConfig
- Defined in:
- lib/rails-gallery/rgallery/photo_config.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#photo_class ⇒ Object
writeonly
Sets the attribute photo_class.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PhotoConfig
constructor
A new instance of PhotoConfig.
Constructor Details
#initialize(options = {}) ⇒ PhotoConfig
Returns a new instance of PhotoConfig.
6 7 8 9 10 |
# File 'lib/rails-gallery/rgallery/photo_config.rb', line 6 def initialize = {} ||= {} @options = @photo_class = [:photo_class] if [:photo_class] end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/rails-gallery/rgallery/photo_config.rb', line 4 def @options end |
#photo_class=(value) ⇒ Object
Sets the attribute photo_class
3 4 5 |
# File 'lib/rails-gallery/rgallery/photo_config.rb', line 3 def photo_class=(value) @photo_class = value end |