Class: Azure::Core::SignedService

Inherits:
FilteredService show all
Defined in:
lib/azure/core/signed_service.rb

Overview

A base class for Service implementations

Instance Attribute Summary collapse

Attributes inherited from FilteredService

#filters

Attributes inherited from Service

#host

Instance Method Summary collapse

Methods inherited from FilteredService

#with_filter

Methods inherited from Service

#generate_uri

Constructor Details

#initialize(signer = Core::Auth::SharedKey.new, account_name = Azure.config.storage_account_name) ⇒ SignedService

Create a new instance of the SignedService

signer - Azure::Core::Auth::Signer. An implementation of Signer used for signing requests. (optional, Default=Azure::Core::Auth::SharedKey.new) account_name - String. The account name (optional, Default=Azure.config.storage_account_name)



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

def initialize(signer=Core::Auth::SharedKey.new, =Azure.config.)
  super()
  @account_name = 
  @signer = signer
  filters.unshift Core::Http::SignerFilter.new(signer) if signer
end

Instance Attribute Details

#account_nameObject

Returns the value of attribute account_name.



35
36
37
# File 'lib/azure/core/signed_service.rb', line 35

def 
  @account_name
end

#signerObject

Returns the value of attribute signer.



36
37
38
# File 'lib/azure/core/signed_service.rb', line 36

def signer
  @signer
end

Instance Method Details

#call(method, uri, body = nil, headers = nil) ⇒ Object



38
39
40
# File 'lib/azure/core/signed_service.rb', line 38

def call(method, uri, body=nil, headers=nil)
  super(method, uri, body, headers)
end