module Sumo
This is the top level module for the gem. It is used as a namespace and holds top-level convenience functions.
This module holds versioning information for the gem.
Constants
- API_VERSION
- CONFIG_FILE
Define global constants.
- MAJOR
- MINOR
- PATCH
- RELEASE
- VERSION
Public Instance Methods
client()
click to toggle source
The default client for the gem.
# File lib/sumo.rb, line 45 def client @client ||= Sumo::Client.new end
client=(new_client)
click to toggle source
Reset the default client for the gem.
# File lib/sumo.rb, line 50 def client=(new_client) @client = new_client end
config()
click to toggle source
The default config for the gem.
# File lib/sumo.rb, line 35 def config @config ||= Sumo::Config.new end
config=(new_config)
click to toggle source
Reset the default config for the gem.
# File lib/sumo.rb, line 40 def config=(new_config) @config = new_config end
creds()
click to toggle source
Define top-level functions.
# File lib/sumo.rb, line 26 def creds @creds ||= config.load_creds! end
creds=(new_creds)
click to toggle source
# File lib/sumo.rb, line 30 def creds=(new_creds) @creds = new_creds end
search(*args)
click to toggle source
Create a new search.
# File lib/sumo.rb, line 55 def search(*args) Sumo::Search.create(*args) end