Class: Pennyworth::Models::StandardError

Inherits:
Data
  • Object
show all
Defined in:
lib/pennyworth/models/standard_error.rb

Overview

Defines a standard error.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject (readonly)

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



6
7
8
# File 'lib/pennyworth/models/standard_error.rb', line 6

def file_path
  @file_path
end

#line_numberObject (readonly)

Returns the value of attribute line_number

Returns:

  • (Object)

    the current value of line_number



6
7
8
# File 'lib/pennyworth/models/standard_error.rb', line 6

def line_number
  @line_number
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/pennyworth/models/standard_error.rb', line 6

def name
  @name
end