Class: Passbook::Pass
- Inherits:
-
Object
- Object
- Passbook::Pass
- Defined in:
- lib/passbook/pass.rb
Instance Method Summary collapse
- #content ⇒ Object
- #filename ⇒ Object
-
#initialize(specs) ⇒ Pass
constructor
A new instance of Pass.
Constructor Details
#initialize(specs) ⇒ Pass
Returns a new instance of Pass.
5 6 7 |
# File 'lib/passbook/pass.rb', line 5 def initialize(specs) @specs = specs end |
Instance Method Details
#content ⇒ Object
13 14 15 |
# File 'lib/passbook/pass.rb', line 13 def content @content ||= @specs.to_json end |
#filename ⇒ Object
9 10 11 |
# File 'lib/passbook/pass.rb', line 9 def filename "pass.json" end |