Class: Passbook::Pass

Inherits:
Object
  • Object
show all
Defined in:
lib/passbook/pass.rb

Instance Method Summary collapse

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

#contentObject



13
14
15
# File 'lib/passbook/pass.rb', line 13

def content
  @content ||= @specs.to_json
end

#filenameObject



9
10
11
# File 'lib/passbook/pass.rb', line 9

def filename
  "pass.json"
end