Class: SimpleLock::Script
- Inherits:
-
Struct
- Object
- Struct
- SimpleLock::Script
- Defined in:
- lib/simple_lock/scripts.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
Instance Attribute Details
#raw ⇒ Object
Returns the value of attribute raw
6 7 8 |
# File 'lib/simple_lock/scripts.rb', line 6 def raw @raw end |
Instance Method Details
#sha ⇒ Object
7 8 9 |
# File 'lib/simple_lock/scripts.rb', line 7 def sha @sha ||= Digest::SHA1.hexdigest(raw) end |