Class: ScriptRevision
- Inherits:
-
Object
- Object
- ScriptRevision
- Defined in:
- lib/rscalr/model/script.rb
Instance Attribute Summary collapse
-
#config_variables ⇒ Object
Returns the value of attribute config_variables.
-
#date ⇒ Object
Returns the value of attribute date.
-
#revision ⇒ Object
Returns the value of attribute revision.
Instance Method Summary collapse
-
#initialize ⇒ ScriptRevision
constructor
A new instance of ScriptRevision.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ ScriptRevision
Returns a new instance of ScriptRevision.
99 100 101 |
# File 'lib/rscalr/model/script.rb', line 99 def initialize @config_variables = [] end |
Instance Attribute Details
#config_variables ⇒ Object
Returns the value of attribute config_variables.
97 98 99 |
# File 'lib/rscalr/model/script.rb', line 97 def config_variables @config_variables end |
#date ⇒ Object
Returns the value of attribute date.
97 98 99 |
# File 'lib/rscalr/model/script.rb', line 97 def date @date end |
#revision ⇒ Object
Returns the value of attribute revision.
97 98 99 |
# File 'lib/rscalr/model/script.rb', line 97 def revision @revision end |
Instance Method Details
#to_s ⇒ Object
103 104 105 |
# File 'lib/rscalr/model/script.rb', line 103 def to_s "{ type: \"script-revision\", revision: #{@revision}, date: \"#{@date}\", vars: \"#{@config_variables}\"}" end |