Class: SingleActionService::ServiceError
- Inherits:
-
Object
- Object
- SingleActionService::ServiceError
- Defined in:
- lib/single_action_service/service_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(code: nil, name: nil) ⇒ ServiceError
constructor
A new instance of ServiceError.
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
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/single_action_service/service_error.rb', line 2 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/single_action_service/service_error.rb', line 2 def name @name end |