Class: Azure::SAS::Sign
- Inherits:
-
Object
- Object
- Azure::SAS::Sign
- Defined in:
- lib/azure/sas/sign.rb
Class Attribute Summary collapse
-
.backend ⇒ Object
Returns the value of attribute backend.
Instance Method Summary collapse
-
#initialize(key, body) ⇒ Sign
constructor
A new instance of Sign.
- #perform ⇒ Object
Constructor Details
#initialize(key, body) ⇒ Sign
Returns a new instance of Sign.
10 11 12 13 |
# File 'lib/azure/sas/sign.rb', line 10 def initialize(key, body) @key = key @body = body end |
Class Attribute Details
.backend ⇒ Object
Returns the value of attribute backend.
5 6 7 |
# File 'lib/azure/sas/sign.rb', line 5 def backend @backend end |
Instance Method Details
#perform ⇒ Object
15 16 17 |
# File 'lib/azure/sas/sign.rb', line 15 def perform self.class.backend.new(@key).sign(@body) end |