Method: Azure::Core::SignedService#initialize

Defined in:
lib/azure/core/signed_service.rb

#initialize(signer = nil, account_name = nil, options = {}) ⇒ SignedService

Create a new instance of the SignedService

Parameters:

  • signer (Azure::Core::Auth::Signer) (defaults to: nil)

    . An implementation of Signer used for signing requests. (optional, Default=Azure::Core::Auth::SharedKey.new)

  • account_name (String) (defaults to: nil)

    The account name (optional, Default=Azure.config.storage_account_name)

  • options (Hash) (defaults to: {})

    options


29
30
31
32
33
34
35
# File 'lib/azure/core/signed_service.rb', line 29

def initialize(signer=nil, =nil, options={})
  super('', options)
  signer ||= Core::Auth::SharedKey.new(client., client.storage_access_key)
  @account_name =  || client.
  @signer = signer
  filters.unshift Core::Http::SignerFilter.new(signer) if signer
end