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.
133 134 135 136 137 138 |
# File 'lib/cli/job_property_validator.rb', line 133 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.
127 128 129 |
# File 'lib/cli/job_property_validator.rb', line 127 def exception @exception end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
125 126 127 |
# File 'lib/cli/job_property_validator.rb', line 125 def job @job end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
128 129 130 |
# File 'lib/cli/job_property_validator.rb', line 128 def line @line end |
#template_path ⇒ Object (readonly)
Returns the value of attribute template_path.
126 127 128 |
# File 'lib/cli/job_property_validator.rb', line 126 def template_path @template_path end |