module PhraseApp::InContextEditor

Constants

VERSION

Public Class Methods

access_token() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 33
def access_token
  config.access_token
end
api_client() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 85
def api_client
  config.api_client
end
api_host() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 81
def api_host
  config.api_host
end
backend() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 17
def backend
  config.backend
end
cache_key_segments_initial() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 41
def cache_key_segments_initial
  config.cache_key_segments_initial
end
cache_lifetime() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 45
def cache_lifetime
  config.cache_lifetime
end
config() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 9
def config
  RequestStore.store[:phraseapp_config] ||= PhraseApp::InContextEditor::Config.new
end
config=(value) click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 13
def config=(value)
  RequestStore.store[:phraseapp_config] = value
end
configure() { |Config| ... } click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 90
def self.configure
  yield(PhraseApp::InContextEditor::Config)
end
disabled?() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 61
def disabled?
  !config.enabled
end
enabled=(value) click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 53
def enabled=(value)
  config.enabled = value
end
enabled?() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 57
def enabled?
  config.enabled
end
ignored_keys() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 49
def ignored_keys
  config.ignored_keys
end
js_host() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 69
def js_host
  config.js_host
end
js_options() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 77
def js_options
  config.js_options
end
js_path() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 73
def js_path
  config.js_path
end
js_use_ssl() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 65
def js_use_ssl
  config.js_use_ssl
end
prefix() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 25
def prefix
  config.prefix
end
project_id() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 29
def project_id
  config.project_id
end
skip_ssl_verification() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 37
def skip_ssl_verification
  config.skip_ssl_verification
end
suffix() click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 21
def suffix
  config.suffix
end
with_config(config_options={}) { || ... } click to toggle source
# File lib/phraseapp-in-context-editor-ruby.rb, line 94
def self.with_config(config_options={}, &block)
  original_config = self.config.dup
  config.assign_values(config_options)
  yield
ensure
  self.config = original_config
end