Class: Blufin::YmlError
- Inherits:
-
Object
- Object
- Blufin::YmlError
- Defined in:
- lib/core/error_handling/yml_error.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#file ⇒ Object
Returns the value of attribute file.
-
#message ⇒ Object
Returns the value of attribute message.
-
#section ⇒ Object
Returns the value of attribute section.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, file, section, field, message) ⇒ YmlError
constructor
A new instance of YmlError.
Constructor Details
#initialize(type, file, section, field, message) ⇒ YmlError
Returns a new instance of YmlError.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/core/error_handling/yml_error.rb', line 7 def initialize(type, file, section, field, ) = [] if .is_a?(String) @type = type @file = file @section = section @field = field = end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
5 6 7 |
# File 'lib/core/error_handling/yml_error.rb', line 5 def field @field end |
#file ⇒ Object
Returns the value of attribute file.
5 6 7 |
# File 'lib/core/error_handling/yml_error.rb', line 5 def file @file end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/core/error_handling/yml_error.rb', line 5 def end |
#section ⇒ Object
Returns the value of attribute section.
5 6 7 |
# File 'lib/core/error_handling/yml_error.rb', line 5 def section @section end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/core/error_handling/yml_error.rb', line 5 def type @type end |