Class: Veto::CheckContextObject
- Inherits:
-
Object
- Object
- Veto::CheckContextObject
- Defined in:
- lib/veto/check_context_object.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(entity, context, errors) ⇒ CheckContextObject
constructor
A new instance of CheckContextObject.
Constructor Details
#initialize(entity, context, errors) ⇒ CheckContextObject
Returns a new instance of CheckContextObject.
4 5 6 7 8 |
# File 'lib/veto/check_context_object.rb', line 4 def initialize(entity, context, errors) @entity = entity @context = context @errors = errors end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/veto/check_context_object.rb', line 3 def context @context end |
#entity ⇒ Object (readonly)
Returns the value of attribute entity.
3 4 5 |
# File 'lib/veto/check_context_object.rb', line 3 def entity @entity end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/veto/check_context_object.rb', line 3 def errors @errors end |