Class: Veto::CheckContextObject

Inherits:
Object
  • Object
show all
Defined in:
lib/veto/check_context_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/veto/check_context_object.rb', line 3

def context
  @context
end

#entityObject (readonly)

Returns the value of attribute entity.



3
4
5
# File 'lib/veto/check_context_object.rb', line 3

def entity
  @entity
end

#errorsObject (readonly)

Returns the value of attribute errors.



3
4
5
# File 'lib/veto/check_context_object.rb', line 3

def errors
  @errors
end