Class: Pennyworth::Models::StandardError
- Inherits:
-
Data
- Object
- Data
- Pennyworth::Models::StandardError
- Defined in:
- lib/pennyworth/models/standard_error.rb
Overview
Defines a standard error.
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: nil, file_path: nil, line_number: nil) ⇒ StandardError
constructor
A new instance of StandardError.
Constructor Details
#initialize(name: nil, file_path: nil, line_number: nil) ⇒ StandardError
Returns a new instance of StandardError.
7 8 9 |
# File 'lib/pennyworth/models/standard_error.rb', line 7 def initialize name: nil, file_path: nil, line_number: nil super end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path
6 7 8 |
# File 'lib/pennyworth/models/standard_error.rb', line 6 def file_path @file_path end |
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number
6 7 8 |
# File 'lib/pennyworth/models/standard_error.rb', line 6 def line_number @line_number end |
#name ⇒ Object (readonly)
Returns the value of attribute name
6 7 8 |
# File 'lib/pennyworth/models/standard_error.rb', line 6 def name @name end |