Class: Passbook::Signature
- Inherits:
-
Object
- Object
- Passbook::Signature
- Defined in:
- lib/passbook/signature.rb
Instance Method Summary collapse
- #content ⇒ Object
- #filename ⇒ Object
-
#initialize(manifest, authority) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(manifest, authority) ⇒ Signature
Returns a new instance of Signature.
3 4 5 |
# File 'lib/passbook/signature.rb', line 3 def initialize(manifest, ) @manifest, @authority = manifest, end |
Instance Method Details
#content ⇒ Object
11 12 13 |
# File 'lib/passbook/signature.rb', line 11 def content @content ||= @authority.sign(@manifest.content) end |
#filename ⇒ Object
7 8 9 |
# File 'lib/passbook/signature.rb', line 7 def filename "signature" end |