Class: Service::PolicyBase
- Inherits:
-
Object
- Object
- Service::PolicyBase
- Defined in:
- lib/service/policy_base.rb
Direct Known Subclasses
User::Policy::NotAlreadySilenced, User::Policy::NotAlreadySuspended
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(context) ⇒ PolicyBase
constructor
A new instance of PolicyBase.
- #reason ⇒ Object
Constructor Details
#initialize(context) ⇒ PolicyBase
Returns a new instance of PolicyBase.
8 9 10 |
# File 'lib/service/policy_base.rb', line 8 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
4 5 6 |
# File 'lib/service/policy_base.rb', line 4 def context @context end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/service/policy_base.rb', line 12 def call raise "Not implemented" end |
#reason ⇒ Object
16 17 18 |
# File 'lib/service/policy_base.rb', line 16 def reason raise "Not implemented" end |