Class: PhraseApp::InContextEditor::BackendService

Inherits:
Object
  • Object
show all
Defined in:
lib/phraseapp-in-context-editor-ruby/backend_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ BackendService

Returns a new instance of BackendService.



8
9
10
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 8

def initialize(args = {})
  self
end

Instance Attribute Details

#blacklisted_keysObject

Returns the value of attribute blacklisted_keys.



6
7
8
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 6

def blacklisted_keys
  @blacklisted_keys
end

Instance Method Details

#translateObject



12
13
14
15
16
17
18
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 12

def translate(...)
  if to_be_translated_without_phraseapp?(...)
    I18n.translate_without_phraseapp(...)
  else
    phraseapp_delegate_for(...)
  end
end