Module: Gardefou

Defined in:
lib/gardefou.rb,
lib/gardefou/profile.rb,
lib/gardefou/storage.rb,
lib/gardefou/version.rb,
lib/gardefou/wrapper.rb,
lib/gardefou/garde_fou.rb

Defined Under Namespace

Modules: GuardedClient Classes: CallSignature, GardeFou, Profile, QuotaExceededError, StorageAdapter

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.new(**options) ⇒ Object

Convenience method to create a new guard



10
11
12
# File 'lib/gardefou.rb', line 10

def self.new(**options)
  GardeFou.new(**options)
end

.with_profile(profile) ⇒ Object

Create a guard with a profile



15
16
17
# File 'lib/gardefou.rb', line 15

def self.with_profile(profile)
  GardeFou.new(profile: profile)
end