Module: Skykick

Extended by:
WrAPI::Configuration, WrAPI::RespondTo
Defined in:
lib/skykick.rb,
lib/skykick/api.rb,
lib/skykick/error.rb,
lib/skykick/client.rb,
lib/skykick/version.rb,
lib/skykick/connection.rb,
lib/skykick/pagination.rb,
lib/skykick/client/alerts.rb,
lib/skykick/client/backup.rb,
lib/skykick/authentication.rb

Defined Under Namespace

Modules: Authentication, Connection, RequestPagination Classes: API, AuthenticationError, Client, ConfigurationError, SkykickError

Constant Summary collapse

DEFAULT_ENDPOINT =
'https://apis.skykick.com'.freeze
DEFAULT_UA =
"Skykick Ruby API wrapper #{Skykick::VERSION}".freeze
DEFAULT_PAGINATION =
Skykick::RequestPagination::ODataPagination
VERSION =
'0.2.1'

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Skykick::Client

Returns:



17
18
19
20
21
22
23
# File 'lib/skykick.rb', line 17

def self.client(options = {})
  Skykick::Client.new({
    endpoint: DEFAULT_ENDPOINT,
    user_agent: DEFAULT_UA,
    pagination_class: DEFAULT_PAGINATION
  }.merge(options))
end

.resetObject



25
26
27
28
29
30
# File 'lib/skykick.rb', line 25

def self.reset
  super
  self.endpoint = DEFAULT_ENDPOINT
  self.user_agent = DEFAULT_UA
  self.pagination_class = DEFAULT_PAGINATION
end