class Passifier::Spec

Pass specification, representing the pass.json file

Attributes

hash[R]
serial_number[R]
to_hash[R]

Public Class Methods

new(serial_number, hash) click to toggle source

@param [String] serial_number An ID for this Spec, used in the pass.json file as the Serial Number @param [Hash] hash The pass.json contents as a hash

# File lib/passifier/spec.rb, line 13
def initialize(serial_number, hash)
  @serial_number = serial_number
  @hash = hash
end

Public Instance Methods

content()
Alias for: to_json
filename() click to toggle source
# File lib/passifier/spec.rb, line 25
def filename
  "pass.json"
end
to_json() click to toggle source

The contents of the pass.json file @return [String] The pass.json contents as a String

# File lib/passifier/spec.rb, line 20
def to_json
  to_hash.to_json
end
Also aliased as: content