Sha256: 5b6593fc16e2d6072591ebf1d57746824ba9fc255bd1b0a6527811876534804e

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

require 'macaroons/macaroons'
require 'macaroons/verifier'

module Macaroon
  class << self
    def new(location: location, identifier: identifier, key: key)
      Macaroons::Macaroon.new(location:location, identifier:identifier, key:key)
    end

    def from_binary(serialized)
      Macaroons::Macaroon.from_binary(serialized)
    end

    def from_json(serialized)
      Macaroons::Macaroon.from_json(serialized)
    end
  end

  class Verifier
    def self.new()
      Macaroons::Verifier.new()
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
macaroons-0.4.1 lib/macaroons.rb
macaroons-0.4.0 lib/macaroons.rb