Module: Sift
- Defined in:
- lib/sift.rb,
lib/sift/client.rb,
lib/sift/version.rb
Defined Under Namespace
Classes: Client, Response
Constant Summary
collapse
- VERSION =
"1.1.0"
Class Method Summary
collapse
Class Method Details
.current_rest_api_path ⇒ Object
Returns the path for the current API version
7
8
9
|
# File 'lib/sift.rb', line 7
def self.current_rest_api_path
"/v203/events"
end
|
.current_users_label_api_path(user_id) ⇒ Object
11
12
13
14
|
# File 'lib/sift.rb', line 11
def self.current_users_label_api_path(user_id)
"/v203/users/#{URI.encode(user_id)}/labels"
end
|
.error(msg) ⇒ Object
30
31
32
|
# File 'lib/sift.rb', line 30
def self.error(msg)
@logger.error(msg) if @logger
end
|
.fatal(msg) ⇒ Object
34
35
36
|
# File 'lib/sift.rb', line 34
def self.fatal(msg)
@logger.fatal(msg) if @logger
end
|
.info(msg) ⇒ Object
22
23
24
|
# File 'lib/sift.rb', line 22
def self.info(msg)
@logger.info(msg) if @logger
end
|
.logger=(logger) ⇒ Object
Sets the Output logger to use within the client. This can be left uninitializaed but is useful for debugging.
18
19
20
|
# File 'lib/sift.rb', line 18
def self.logger=(logger)
@logger = logger
end
|
.warn(msg) ⇒ Object
26
27
28
|
# File 'lib/sift.rb', line 26
def self.warn(msg)
@logger.warn(msg) if @logger
end
|