Class: ActivityPermissionEngine::CheckAuthorization::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/activity_permission_engine/check_authorization.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorized) ⇒ Response

Returns a new instance of Response.



35
36
37
# File 'lib/activity_permission_engine/check_authorization.rb', line 35

def initialize(authorized)
  @authorized = authorized
end

Instance Attribute Details

#authorizedObject (readonly)

Returns the value of attribute authorized.



43
44
45
# File 'lib/activity_permission_engine/check_authorization.rb', line 43

def authorized
  @authorized
end

Instance Method Details

#authorized?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/activity_permission_engine/check_authorization.rb', line 39

def authorized?
  authorized
end