Class: SolidUseCase::Either::ErrorStruct

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/solid_use_case/either/error_struct.rb

Instance Method Summary collapse

Instance Method Details

#==(error_type_symbol) ⇒ Object



4
5
6
# File 'lib/solid_use_case/either/error_struct.rb', line 4

def ==(error_type_symbol)
  self[:type] == error_type_symbol
end