Module: Swiftype
- Extended by:
- Configuration
- Defined in:
- lib/swiftype.rb,
lib/swiftype/easy.rb,
lib/swiftype/client.rb,
lib/swiftype/engine.rb,
lib/swiftype/search.rb,
lib/swiftype/request.rb,
lib/swiftype/version.rb,
lib/swiftype/document.rb,
lib/swiftype/base_model.rb,
lib/swiftype/connection.rb,
lib/swiftype/exceptions.rb,
lib/swiftype/configuration.rb,
lib/swiftype/document_type.rb
Defined Under Namespace
Modules: Configuration, Connection, Request, Search
Classes: BaseModel, Client, ClientException, Document, DocumentType, Easy, Engine, InvalidCredentials, NonExistentRecord, RecordAlreadyExists, UnexpectedHTTPException
Constant Summary
collapse
- VERSION =
"0.0.6"
Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary
collapse
configure, extended, options, reset
Class Method Details
.deprecation_notice! ⇒ Object
35
36
37
38
39
40
41
42
|
# File 'lib/swiftype.rb', line 35
def deprecation_notice!
ActiveSupport::Deprecation.warn(
%{You're using a very old client to access Swiftype. The gem named 'swiftype-rb' is deprecated,
has not received updates since August 2012, and will receive no further updates.
Please switch to using the 'swiftype' gem instead, at your convenience; it is far
better maintaned, supported, and documented.}, caller)
end
|
.method_missing(method, *args, &block) ⇒ Object
26
27
28
29
|
# File 'lib/swiftype.rb', line 26
def method_missing(method, *args, &block)
return super unless new.respond_to?(method)
new.send(method, *args, &block)
end
|
.new(options = {}) ⇒ Object
22
23
24
|
# File 'lib/swiftype.rb', line 22
def new(options={})
Swiftype::Client.new(options)
end
|
.respond_to?(method, include_private = false) ⇒ Boolean
31
32
33
|
# File 'lib/swiftype.rb', line 31
def respond_to?(method, include_private=false)
new.respond_to?(method, include_private) || super(method, include_private)
end
|