Class: Decidim::Voca::Updater
- Inherits:
-
Object
- Object
- Decidim::Voca::Updater
- Defined in:
- lib/decidim/voca/updater.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Updater
constructor
A new instance of Updater.
Constructor Details
#initialize(options) ⇒ Updater
Returns a new instance of Updater.
15 16 17 18 19 |
# File 'lib/decidim/voca/updater.rb', line 15 def initialize() @options = update! end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/decidim/voca/updater.rb', line 14 def @options end |
Class Method Details
.update!(options) ⇒ Object
7 8 9 10 11 |
# File 'lib/decidim/voca/updater.rb', line 7 def update!() ActiveSupport::Deprecation.warn('deprecated.') updater = self.new(.deep_symbolize_keys) end |