Class: ServicePattern::FailError
- Inherits:
-
Object
- Object
- ServicePattern::FailError
- Defined in:
- lib/service_pattern/fail_error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message:, type: nil) ⇒ FailError
constructor
A new instance of FailError.
Constructor Details
#initialize(message:, type: nil) ⇒ FailError
Returns a new instance of FailError.
4 5 6 7 |
# File 'lib/service_pattern/fail_error.rb', line 4 def initialize(message:, type: nil) @message = @type = type end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
2 3 4 |
# File 'lib/service_pattern/fail_error.rb', line 2 def @message end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/service_pattern/fail_error.rb', line 2 def type @type end |