Class: Consul::Async::ConsulTemplateRenderedResult
- Inherits:
-
Object
- Object
- Consul::Async::ConsulTemplateRenderedResult
- Defined in:
- lib/consul/async/consul_template_render.rb
Overview
Result of the rendering of a template .ready? will tell if rendering is full or partial
Instance Attribute Summary collapse
-
#hot_reloaded ⇒ Object
readonly
Returns the value of attribute hot_reloaded.
-
#last_result ⇒ Object
readonly
Returns the value of attribute last_result.
-
#modified ⇒ Object
readonly
Returns the value of attribute modified.
-
#output_file ⇒ Object
readonly
Returns the value of attribute output_file.
-
#ready ⇒ Object
readonly
Returns the value of attribute ready.
-
#template_file ⇒ Object
readonly
Returns the value of attribute template_file.
Instance Method Summary collapse
-
#initialize(template_file, output_file, hot_reloaded, was_success, modified, last_result) ⇒ ConsulTemplateRenderedResult
constructor
A new instance of ConsulTemplateRenderedResult.
- #ready? ⇒ Boolean
Constructor Details
#initialize(template_file, output_file, hot_reloaded, was_success, modified, last_result) ⇒ ConsulTemplateRenderedResult
Returns a new instance of ConsulTemplateRenderedResult.
10 11 12 13 14 15 16 17 |
# File 'lib/consul/async/consul_template_render.rb', line 10 def initialize(template_file, output_file, hot_reloaded, was_success, modified, last_result) @template_file = template_file @output_file = output_file @hot_reloaded = hot_reloaded @ready = was_success @modified = modified @last_result = last_result end |
Instance Attribute Details
#hot_reloaded ⇒ Object (readonly)
Returns the value of attribute hot_reloaded.
9 10 11 |
# File 'lib/consul/async/consul_template_render.rb', line 9 def hot_reloaded @hot_reloaded end |
#last_result ⇒ Object (readonly)
Returns the value of attribute last_result.
9 10 11 |
# File 'lib/consul/async/consul_template_render.rb', line 9 def last_result @last_result end |
#modified ⇒ Object (readonly)
Returns the value of attribute modified.
9 10 11 |
# File 'lib/consul/async/consul_template_render.rb', line 9 def modified @modified end |
#output_file ⇒ Object (readonly)
Returns the value of attribute output_file.
9 10 11 |
# File 'lib/consul/async/consul_template_render.rb', line 9 def output_file @output_file end |
#ready ⇒ Object (readonly)
Returns the value of attribute ready.
9 10 11 |
# File 'lib/consul/async/consul_template_render.rb', line 9 def ready @ready end |
#template_file ⇒ Object (readonly)
Returns the value of attribute template_file.
9 10 11 |
# File 'lib/consul/async/consul_template_render.rb', line 9 def template_file @template_file end |
Instance Method Details
#ready? ⇒ Boolean
19 20 21 |
# File 'lib/consul/async/consul_template_render.rb', line 19 def ready? @ready end |