Class: MarbleGate::Authorizer

Inherits:
Object
  • Object
show all
Defined in:
lib/marble_gate/authorizer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ Authorizer

Returns a new instance of Authorizer.



9
10
11
# File 'lib/marble_gate/authorizer.rb', line 9

def initialize(model)
  @model = model
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



7
8
9
# File 'lib/marble_gate/authorizer.rb', line 7

def model
  @model
end

Class Method Details

.defaultObject



13
14
15
# File 'lib/marble_gate/authorizer.rb', line 13

def self.default(*)
  false
end

Instance Method Details

#defaultObject



17
18
19
# File 'lib/marble_gate/authorizer.rb', line 17

def default(*)
  false
end