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/baseclient.rb,
lib/cfoundry/chatty_hash.rb,
lib/cfoundry/upload_helpers.rb
Overview
:nodoc:
Defined Under Namespace
Modules: UploadHelpers, V1, V2, Zip Classes: APIError, BadResponse, BaseClient, ChattyHash, Client, Denied, Deprecated, Error, Mismatch, NotFound, TargetRefused, UAAClient
Constant Summary collapse
- VERSION =
CFoundry library version number.
"0.4.3".freeze
Class Method Summary collapse
Class Method Details
.define_error(class_name, *codes) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/cfoundry/errors.rb', line 69 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 |