Class: Azure::SAS::Sign

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/sas/sign.rb

Class Attribute Summary collapse

Instance Method Summary collapse

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

.backendObject

Returns the value of attribute backend.



5
6
7
# File 'lib/azure/sas/sign.rb', line 5

def backend
  @backend
end

Instance Method Details

#performObject



15
16
17
# File 'lib/azure/sas/sign.rb', line 15

def perform
  self.class.backend.new(@key).sign(@body)
end