Sha256: 5bed52e65f5bad3ef5f2cd39403a5074e24e2f04f64d5f7ede7160ad5f96af6d

Contents?: true

Size: 945 Bytes

Versions: 9

Compression:

Stored size: 945 Bytes

Contents

# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

require 'ms_rest'
require 'ms_rest_azure'

module Azure::ARM
  autoload :Client,                           'azure_sdk/client'
  autoload :Configurable,                     'azure_sdk/configurable'
  autoload :Default,                          'azure_sdk/default'

  class << self
    include Azure::ARM::Configurable

    # API client based on configured options {Configurable}
    #
    # @return [Azure::Client] API wrapper
    def client(options = {})
      @client = Azure::ARM::Client.new(options) unless defined?(@client) && @client.same_options?(options)
      @client
    end

    private

    def method_missing(method_name, *args, &block)
      return super unless client.respond_to?(method_name)
      client.send(method_name, *args, &block)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
azure_sdk-0.14.0 lib/azure_sdk.rb
azure_sdk-0.13.0 lib/azure_sdk.rb
azure_sdk-0.12.0 lib/azure_sdk.rb
azure_sdk-0.11.0 lib/azure_sdk.rb
azure_sdk-0.10.0 lib/azure_sdk.rb
azure_sdk-0.9.0 lib/azure_sdk.rb
azure_sdk-0.8.0 lib/azure_sdk.rb
azure_sdk-0.7.0 lib/azure_sdk.rb
azure_sdk-0.6.0 lib/azure_sdk.rb