Class: Nib::History::Compose::Volumes
- Inherits:
-
Object
- Object
- Nib::History::Compose::Volumes
- Defined in:
- lib/nib/history/compose.rb
Instance Attribute Summary collapse
-
#original_config ⇒ Object
readonly
Returns the value of attribute original_config.
-
#volume_name ⇒ Object
readonly
Returns the value of attribute volume_name.
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(volume_name, original_config = nil) ⇒ Volumes
constructor
A new instance of Volumes.
Constructor Details
#initialize(volume_name, original_config = nil) ⇒ Volumes
Returns a new instance of Volumes.
96 97 98 99 |
# File 'lib/nib/history/compose.rb', line 96 def initialize(volume_name, original_config = nil) @original_config = original_config || {} @volume_name = volume_name end |
Instance Attribute Details
#original_config ⇒ Object (readonly)
Returns the value of attribute original_config.
94 95 96 |
# File 'lib/nib/history/compose.rb', line 94 def original_config @original_config end |
#volume_name ⇒ Object (readonly)
Returns the value of attribute volume_name.
94 95 96 |
# File 'lib/nib/history/compose.rb', line 94 def volume_name @volume_name end |
Instance Method Details
#config ⇒ Object
101 102 103 |
# File 'lib/nib/history/compose.rb', line 101 def config original_config.merge(volume_name => nil) end |