Module: Castle
- Defined in:
- lib/castle.rb,
lib/castle/api.rb,
lib/castle/client.rb,
lib/castle/errors.rb,
lib/castle/logger.rb,
lib/castle/api/log.rb,
lib/castle/command.rb,
lib/castle/session.rb,
lib/castle/verdict.rb,
lib/castle/version.rb,
lib/castle/api/risk.rb,
lib/castle/api/track.rb,
lib/castle/api/filter.rb,
lib/castle/ips/extract.rb,
lib/castle/secure_mode.rb,
lib/castle/utils/clone.rb,
lib/castle/utils/merge.rb,
lib/castle/commands/log.rb,
lib/castle/api/lists/get.rb,
lib/castle/commands/risk.rb,
lib/castle/configuration.rb,
lib/castle/context/merge.rb,
lib/castle/support/rails.rb,
lib/castle/api/get_device.rb,
lib/castle/commands/track.rb,
lib/castle/headers/filter.rb,
lib/castle/headers/format.rb,
lib/castle/support/hanami.rb,
lib/castle/api/lists/query.rb,
lib/castle/commands/filter.rb,
lib/castle/context/prepare.rb,
lib/castle/headers/extract.rb,
lib/castle/payload/prepare.rb,
lib/castle/webhooks/verify.rb,
lib/castle/api/authenticate.rb,
lib/castle/api/lists/create.rb,
lib/castle/api/lists/delete.rb,
lib/castle/api/lists/update.rb,
lib/castle/context/sanitize.rb,
lib/castle/api/lists/get_all.rb,
lib/castle/api/report_device.rb,
lib/castle/client_id/extract.rb,
lib/castle/core/send_request.rb,
lib/castle/failover/strategy.rb,
lib/castle/api/approve_device.rb,
lib/castle/api/list_items/get.rb,
lib/castle/commands/lists/get.rb,
lib/castle/validators/present.rb,
lib/castle/commands/get_device.rb,
lib/castle/context/get_default.rb,
lib/castle/core/get_connection.rb,
lib/castle/utils/get_timestamp.rb,
lib/castle/api/list_items/count.rb,
lib/castle/api/list_items/query.rb,
lib/castle/client_actions/lists.rb,
lib/castle/commands/lists/query.rb,
lib/castle/core/process_webhook.rb,
lib/castle/utils/secure_compare.rb,
lib/castle/api/end_impersonation.rb,
lib/castle/api/list_items/create.rb,
lib/castle/api/list_items/update.rb,
lib/castle/commands/authenticate.rb,
lib/castle/commands/lists/create.rb,
lib/castle/commands/lists/delete.rb,
lib/castle/commands/lists/update.rb,
lib/castle/core/process_response.rb,
lib/castle/api/list_items/archive.rb,
lib/castle/commands/lists/get_all.rb,
lib/castle/commands/report_device.rb,
lib/castle/api/start_impersonation.rb,
lib/castle/commands/approve_device.rb,
lib/castle/commands/list_items/get.rb,
lib/castle/singleton_configuration.rb,
lib/castle/api/get_devices_for_user.rb,
lib/castle/api/list_items/unarchive.rb,
lib/castle/validators/not_supported.rb,
lib/castle/client_actions/list_items.rb,
lib/castle/commands/list_items/count.rb,
lib/castle/commands/list_items/query.rb,
lib/castle/failover/prepare_response.rb,
lib/castle/utils/clean_invalid_chars.rb,
lib/castle/utils/deep_symbolize_keys.rb,
lib/castle/commands/end_impersonation.rb,
lib/castle/commands/list_items/create.rb,
lib/castle/commands/list_items/update.rb,
lib/castle/commands/list_items/archive.rb,
lib/castle/commands/start_impersonation.rb,
lib/castle/commands/get_devices_for_user.rb,
lib/castle/commands/list_items/unarchive.rb
Overview
Defined Under Namespace
Modules: API, CastleClient, ClientActions, ClientId, Commands, Context, Core, Failover, Hanami, Headers, IPs, Logger, Payload, SecureMode, Session, Utils, Validators, Verdict, Webhooks
Classes: ApiError, BadRequestError, Client, Command, Configuration, ConfigurationError, Error, ForbiddenError, ImpersonationFailed, InternalServerError, InvalidParametersError, InvalidRequestTokenError, NotFoundError, RateLimitError, RequestError, SecurityError, SingletonConfiguration, UnauthorizedError, UserUnauthorizedError, WebhookVerificationError
Constant Summary
collapse
- VERSION =
'8.1.0'
Class Method Summary
collapse
Class Method Details
.api_secret=(api_secret) ⇒ Object
107
108
109
|
# File 'lib/castle.rb', line 107
def api_secret=(api_secret)
config.api_secret = api_secret
end
|
97
98
99
100
101
|
# File 'lib/castle.rb', line 97
def configure(config_hash = nil)
(config_hash || {}).each { |config_name, config_value| config.send(:"#{config_name}=", config_value) }
yield(config) if block_given?
end
|