Class: SingleActionService::ServiceError

Inherits:
Object
  • Object
show all
Defined in:
lib/single_action_service/service_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code: nil, name: nil) ⇒ ServiceError

Returns a new instance of ServiceError.



4
5
6
7
# File 'lib/single_action_service/service_error.rb', line 4

def initialize(code: nil, name: nil)
  @code = code
  @name = name
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



2
3
4
# File 'lib/single_action_service/service_error.rb', line 2

def code
  @code
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/single_action_service/service_error.rb', line 2

def name
  @name
end