Class: Plushie::RendererExit
- Inherits:
-
Data
- Object
- Data
- Plushie::RendererExit
- Defined in:
- lib/plushie/renderer_exit.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, message:, details: nil) ⇒ RendererExit
constructor
A new instance of RendererExit.
Constructor Details
#initialize(type:, message:, details: nil) ⇒ RendererExit
Returns a new instance of RendererExit.
31 32 33 34 35 36 37 38 39 |
# File 'lib/plushie/renderer_exit.rb', line 31 def initialize(type:, message:, details: nil) unless RENDERER_EXIT_TYPES.include?(type) raise ArgumentError, "invalid RendererExit type #{type.inspect}, " \ "expected one of #{RENDERER_EXIT_TYPES.map(&:inspect).join(", ")}" end super end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details
30 31 32 |
# File 'lib/plushie/renderer_exit.rb', line 30 def details @details end |
#message ⇒ Object (readonly)
Returns the value of attribute message
30 31 32 |
# File 'lib/plushie/renderer_exit.rb', line 30 def @message end |
#type ⇒ Object (readonly)
Returns the value of attribute type
30 31 32 |
# File 'lib/plushie/renderer_exit.rb', line 30 def type @type end |