Class: Azure::Core::SignedService
- Inherits:
-
FilteredService
- Object
- Service
- FilteredService
- Azure::Core::SignedService
- Defined in:
- lib/azure/core/signed_service.rb
Overview
A base class for Service implementations
Instance Attribute Summary collapse
-
#account_name ⇒ Object
Returns the value of attribute account_name.
-
#signer ⇒ Object
Returns the value of attribute signer.
Attributes inherited from FilteredService
Attributes inherited from Service
Instance Method Summary collapse
- #call(method, uri, body = nil, headers = nil, options = {}) ⇒ Object
-
#initialize(signer = nil, account_name = nil, options = {}) ⇒ SignedService
constructor
Create a new instance of the SignedService.
Methods inherited from FilteredService
Methods inherited from Service
Constructor Details
#initialize(signer = nil, account_name = nil, options = {}) ⇒ SignedService
Create a new instance of the SignedService
29 30 31 32 33 34 35 |
# File 'lib/azure/core/signed_service.rb', line 29 def initialize(signer=nil, account_name=nil, ={}) super('', ) 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 |
Instance Attribute Details
#account_name ⇒ Object
Returns the value of attribute account_name.
37 38 39 |
# File 'lib/azure/core/signed_service.rb', line 37 def account_name @account_name end |
#signer ⇒ Object
Returns the value of attribute signer.
38 39 40 |
# File 'lib/azure/core/signed_service.rb', line 38 def signer @signer end |
Instance Method Details
#call(method, uri, body = nil, headers = nil, options = {}) ⇒ Object
40 41 42 |
# File 'lib/azure/core/signed_service.rb', line 40 def call(method, uri, body=nil, headers=nil, ={}) super(method, uri, body, headers, ) end |