Class: Performa::StageCommand
- Inherits:
-
Object
- Object
- Performa::StageCommand
- Defined in:
- lib/performa/stage.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #cache ⇒ Object
-
#initialize(value, hash:) ⇒ StageCommand
constructor
A new instance of StageCommand.
Constructor Details
#initialize(value, hash:) ⇒ StageCommand
Returns a new instance of StageCommand.
30 31 32 33 |
# File 'lib/performa/stage.rb', line 30 def initialize(value, hash:) @value = value @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
28 29 30 |
# File 'lib/performa/stage.rb', line 28 def hash @hash end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
28 29 30 |
# File 'lib/performa/stage.rb', line 28 def value @value end |
Instance Method Details
#cache ⇒ Object
35 36 37 |
# File 'lib/performa/stage.rb', line 35 def cache @cache ||= Images.cache_presence(@hash) end |