Class: RestMyCase::Context::Errors::Base

Inherits:
Array
  • Object
show all
Defined in:
lib/rest_my_case/context/errors/base.rb

Direct Known Subclasses

Status

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
# File 'lib/rest_my_case/context/errors/base.rb', line 5

def initialize(context)
  super()

  @context = context
end

Instance Method Details

#add(error) ⇒ Object



11
12
13
# File 'lib/rest_my_case/context/errors/base.rb', line 11

def add(error)
  push(error)
end