class Azure::Core::SignedService

A base class for Service implementations

Attributes

account_name[RW]
signer[RW]

Public Class Methods

new(signer=nil, account_name=nil, options={}) click to toggle source

Create a new instance of the SignedService

@param signer [Azure::Core::Auth::Signer]. An implementation of Signer used for signing requests. (optional, Default=Azure::Core::Auth::SharedKey.new) @param #account_name [String] The account name (optional, Default=Azure.config.storage_account_name) @param options [Hash] options

Calls superclass method Azure::Core::FilteredService.new
# File lib/azure/core/signed_service.rb, line 29
def initialize(signer=nil, account_name=nil, options={})
  super('', options)
  signer ||= Core::Auth::SharedKey.new(client.storage_account_name, client.storage_access_key)
  @account_name = account_name || client.storage_account_name
  @signer = signer
  filters.unshift Core::Http::SignerFilter.new(signer) if signer
end

Public Instance Methods

call(method, uri, body=nil, headers=nil) click to toggle source
Calls superclass method Azure::Core::FilteredService#call
# File lib/azure/core/signed_service.rb, line 40
def call(method, uri, body=nil, headers=nil)
  super(method, uri, body, headers)
end