Module: JFoundry
- Defined in:
- lib/jfoundry/client.rb,
lib/jfoundry/zip.rb,
lib/jfoundry/timer.rb,
lib/jfoundry/errors.rb,
lib/jfoundry/signer.rb,
lib/jfoundry/v2/user.rb,
lib/jfoundry/version.rb,
lib/jfoundry/validator.rb,
lib/jfoundry/auth_token.rb,
lib/jfoundry/baseclient.rb,
lib/jfoundry/chatty_hash.rb,
lib/jfoundry/rest_client.rb,
lib/jfoundry/trace_helpers.rb,
lib/jfoundry/upload_helpers.rb,
lib/jfoundry/signature/version.rb,
lib/jfoundry/concerns/proxy_options.rb,
lib/jfoundry/v2/model_magic/client_extensions.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ProxyOptions, Signature, Signer, Timer, TraceHelpers, UploadHelpers, V2, Validator, Zip Classes: APIError, AuthToken, BadResponse, BaseClient, ChattyHash, Client, Denied, Deprecated, Error, InvalidTarget, Mismatch, NotFound, RestClient, TargetRefused, Timeout, UAAError, Unauthorized
Constant Summary collapse
- VENDOR_DIR =
File.("../../../vendor", __FILE__)
- VERSION =
JFoundry library version number.
"0.1.0".freeze
Class Method Summary collapse
Class Method Details
.define_error(class_name, code) ⇒ Object
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/jfoundry/errors.rb', line 133 def self.define_error(class_name, code) base = case class_name when /NotFound$/ NotFound else APIError end klass = if const_defined?(class_name) const_get(class_name) else Class.new(base) end APIError.error_classes[code] = klass unless const_defined?(class_name) const_set(class_name, klass) end end |