Method: Passbook::Signer#initialize
- Defined in:
- lib/passbook/signer.rb
#initialize(params = {}) ⇒ Signer
Returns a new instance of Signer.
8 9 10 11 12 13 14 |
# File 'lib/passbook/signer.rb', line 8 def initialize(params = {}) @certificate = params[:certificate] || Passbook.p12_certificate @password = params[:password] || Passbook.p12_password @key = params[:key] || (params.empty? ? Passbook.p12_key : nil) @wwdc_cert = params[:wwdc_cert] || Passbook.wwdc_cert compute_cert end |