Sha256: 0211f8bbeaf95e932d0f420451d99febe5cde50d64e2a4c41d5db98c6625224f

Contents?: true

Size: 253 Bytes

Versions: 8

Compression:

Stored size: 253 Bytes

Contents

require 'sinatra/base'

module Dubai
  class Server < Sinatra::Base
    get '/pass.pkpass' do
      content_type 'application/vnd.apple.pkpass'
      attachment "pass.pkpass"

      Passbook::Pass.new(settings.directory).pkpass.string
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dubai-0.1.2 ./lib/dubai/server.rb
dubai-0.1.1 ./lib/dubai/server.rb
dubai-0.1.0 ./lib/dubai/server.rb
dubai-0.0.6 ./lib/dubai/server.rb
dubai-0.0.5 ./lib/dubai/server.rb
dubai-0.0.4 ./lib/dubai/server.rb
dubai-0.0.3 ./lib/dubai/server.rb
dubai-0.0.1 ./lib/dubai/server.rb