Class: Revision::Factory
- Defined in:
- lib/controlled_versioning/revision/factory.rb
Instance Attribute Summary collapse
-
#version ⇒ Object
readonly
Returns the value of attribute version.
-
#versionable ⇒ Object
readonly
Returns the value of attribute versionable.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(args) ⇒ Factory
constructor
A new instance of Factory.
Constructor Details
#initialize(args) ⇒ Factory
Returns a new instance of Factory.
4 5 6 7 |
# File 'lib/controlled_versioning/revision/factory.rb', line 4 def initialize(args) @versionable = args[:versionable] @version = args[:version] end |
Instance Attribute Details
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/controlled_versioning/revision/factory.rb', line 3 def version @version end |
#versionable ⇒ Object (readonly)
Returns the value of attribute versionable.
3 4 5 |
# File 'lib/controlled_versioning/revision/factory.rb', line 3 def versionable @versionable end |
Instance Method Details
#build ⇒ Object
9 10 11 12 13 14 |
# File 'lib/controlled_versioning/revision/factory.rb', line 9 def build mark_for_removal add_notes build_attributes build_children end |