Module: CFoundry
- Defined in:
- lib/cfoundry/version.rb,
lib/cfoundry/zip.rb,
lib/cfoundry/client.rb,
lib/cfoundry/errors.rb,
lib/cfoundry/uaaclient.rb,
lib/cfoundry/validator.rb,
lib/cfoundry/baseclient.rb,
lib/cfoundry/chatty_hash.rb,
lib/cfoundry/upload_helpers.rb
Overview
:nodoc:
Defined Under Namespace
Modules: UploadHelpers, V1, V2, Validator, Zip Classes: APIError, BadResponse, BaseClient, ChattyHash, Client, Denied, Deprecated, Error, Mismatch, NotFound, TargetRefused, Timeout, UAAClient
Constant Summary collapse
- VERSION =
CFoundry library version number.
"0.4.17".freeze
Class Method Summary collapse
Class Method Details
.define_error(class_name, *codes) ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/cfoundry/errors.rb', line 83 def self.define_error(class_name, *codes) base = case class_name when /NotFound$/ NotFound else APIError end klass = Class.new(base) codes.each do |code| APIError.error_classes[code] = klass end const_set(class_name, klass) end |