Module: Azure::Core

Defined in:
lib/azure/core.rb,
lib/azure/core/error.rb,
lib/azure/core/service.rb,
lib/azure/core/utility.rb,
lib/azure/core/auth/signer.rb,
lib/azure/core/configuration.rb,
lib/azure/core/signed_service.rb,
lib/azure/core/auth/authorizer.rb,
lib/azure/core/auth/shared_key.rb,
lib/azure/core/http/http_error.rb,
lib/azure/core/filtered_service.rb,
lib/azure/core/http/http_filter.rb,
lib/azure/core/http/debug_filter.rb,
lib/azure/core/http/http_request.rb,
lib/azure/core/http/retry_policy.rb,
lib/azure/core/http/http_response.rb,
lib/azure/core/http/signer_filter.rb,
lib/azure/core/auth/shared_key_lite.rb

Overview


# Copyright © Microsoft and contributors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Defined Under Namespace

Modules: Auth, Http, Logger, Utility Classes: Configuration, Error, FilteredService, Service, SignedService

Class Method Summary collapse

Class Method Details

.configObject

Public: Access the service configuration.

Returns the Azure::Configuration instance.



49
50
51
# File 'lib/azure/core/configuration.rb', line 49

def self.config
  Configuration.instance
end

.configure {|config| ... } ⇒ Object

Public: Sugar to configure the services in a neatly wrapped DSL.

Yields the Azure::Configuration instance.

Example:

Azure.configure do |config|
  config. = ENV["AZURE_STORAGE_ACCOUNT"]
end

Returns nothing.

Yields:



42
43
44
# File 'lib/azure/core/configuration.rb', line 42

def self.configure
  yield config
end