Class: Hippo::SystemSettings::ExtensionSettings

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/hippo/system_settings.rb

Instance Method Summary collapse

Constructor Details

#initialize(ext_id, settings) ⇒ ExtensionSettings

Returns a new instance of ExtensionSettings.


15
16
17
18
# File 'lib/hippo/system_settings.rb', line 15

def initialize(ext_id, settings)
    @extension_id = ext_id
    super(settings)
end

Instance Method Details

#persist!Object


19
20
21
# File 'lib/hippo/system_settings.rb', line 19

def persist!
    SystemSettings.persist!(@extension_id, self.to_h)
end