Class: Performa::StageCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/performa/stage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject (readonly)

Returns the value of attribute hash.



28
29
30
# File 'lib/performa/stage.rb', line 28

def hash
  @hash
end

#valueObject (readonly)

Returns the value of attribute value.



28
29
30
# File 'lib/performa/stage.rb', line 28

def value
  @value
end

Instance Method Details

#cacheObject



35
36
37
# File 'lib/performa/stage.rb', line 35

def cache
  @cache ||= Images.cache_presence(@hash)
end