Class: PhraseApp::InContextEditor::Config
- Inherits:
-
Object
- Object
- PhraseApp::InContextEditor::Config
- Defined in:
- lib/phraseapp-in-context-editor-ruby/config.rb
Constant Summary collapse
- CONFIG_OPTIONS =
{ account_id: nil, project_id: nil, datacenter: "eu", enabled: false, backend: PhraseApp::InContextEditor::BackendService.new, prefix: "{{__", suffix: "__}}", origin: "in-context-editor-ruby", ignored_keys: [] }.freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.reset_to_defaults! ⇒ Object
42 43 44 45 46 |
# File 'lib/phraseapp-in-context-editor-ruby/config.rb', line 42 def self.reset_to_defaults! CONFIG_OPTIONS.each do |option, default_value| send("#{option}=", default_value) end end |
Instance Method Details
#assign_values(config_options = {}) ⇒ Object
36 37 38 39 40 |
# File 'lib/phraseapp-in-context-editor-ruby/config.rb', line 36 def assign_values( = {}) .each do |config_option, value| send("#{config_option}=", value) end end |