Class: RhetButler::Stasis::ValiseWriter
- Defined in:
- lib/rhet-butler/stasis/writer.rb
Instance Attribute Summary collapse
-
#target_valise ⇒ Object
readonly
Returns the value of attribute target_valise.
Attributes inherited from Writer
Instance Method Summary collapse
-
#initialize(valise) ⇒ ValiseWriter
constructor
A new instance of ValiseWriter.
- #store(path, content) ⇒ Object
Methods inherited from Writer
Constructor Details
#initialize(valise) ⇒ ValiseWriter
Returns a new instance of ValiseWriter.
23 24 25 |
# File 'lib/rhet-butler/stasis/writer.rb', line 23 def initialize(valise) @target_valise = valise end |
Instance Attribute Details
#target_valise ⇒ Object (readonly)
Returns the value of attribute target_valise.
27 28 29 |
# File 'lib/rhet-butler/stasis/writer.rb', line 27 def target_valise @target_valise end |
Instance Method Details
#store(path, content) ⇒ Object
29 30 31 32 |
# File 'lib/rhet-butler/stasis/writer.rb', line 29 def store(path, content) target = target_valise.get(path).writable.first target.contents = content end |