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
Direct Known Subclasses
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) ⇒ Object
-
#initialize(signer = Core::Auth::SharedKey.new, account_name = Azure.config.storage_account_name) ⇒ SignedService
constructor
Create a new instance of the SignedService.
Methods inherited from FilteredService
Methods inherited from Service
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, account_name=Azure.config.storage_account_name) super() @account_name = 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.
35 36 37 |
# File 'lib/azure/core/signed_service.rb', line 35 def account_name @account_name end |
#signer ⇒ Object
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 |