Class: Bosh::Cli::JobPropertyValidator::TemplateError
- Defined in:
- lib/cli/job_property_validator.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#job ⇒ Object
readonly
Returns the value of attribute job.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#template_path ⇒ Object
readonly
Returns the value of attribute template_path.
Instance Method Summary collapse
-
#initialize(job, template_path, exception) ⇒ TemplateError
constructor
A new instance of TemplateError.
Constructor Details
#initialize(job, template_path, exception) ⇒ TemplateError
Returns a new instance of TemplateError.
122 123 124 125 126 127 |
# File 'lib/cli/job_property_validator.rb', line 122 def initialize(job, template_path, exception) @job = job @template_path = template_path @exception = exception @line = exception.backtrace.first.split(":")[1] end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
116 117 118 |
# File 'lib/cli/job_property_validator.rb', line 116 def exception @exception end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
114 115 116 |
# File 'lib/cli/job_property_validator.rb', line 114 def job @job end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
117 118 119 |
# File 'lib/cli/job_property_validator.rb', line 117 def line @line end |
#template_path ⇒ Object (readonly)
Returns the value of attribute template_path.
115 116 117 |
# File 'lib/cli/job_property_validator.rb', line 115 def template_path @template_path end |