Class: Fiona7::VersionHelper
- Inherits:
-
Object
- Object
- Fiona7::VersionHelper
- Defined in:
- lib/fiona7/version_helper.rb
Instance Attribute Summary collapse
-
#base_content_state_id ⇒ Object
readonly
Returns the value of attribute base_content_state_id.
-
#base_revision_id ⇒ Object
readonly
Returns the value of attribute base_revision_id.
-
#content_state_id ⇒ Object
readonly
Returns the value of attribute content_state_id.
-
#revision_id ⇒ Object
readonly
Returns the value of attribute revision_id.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Instance Method Summary collapse
-
#initialize(workspace_id) ⇒ VersionHelper
constructor
A new instance of VersionHelper.
Constructor Details
#initialize(workspace_id) ⇒ VersionHelper
Returns a new instance of VersionHelper.
9 10 11 12 13 14 15 16 17 |
# File 'lib/fiona7/version_helper.rb', line 9 def initialize(workspace_id) self.workspace_id = workspace_id.to_sym if self.workspace_id == :published self.compute_for_published else self.compute_for_rtc end end |
Instance Attribute Details
#base_content_state_id ⇒ Object
Returns the value of attribute base_content_state_id.
8 9 10 |
# File 'lib/fiona7/version_helper.rb', line 8 def base_content_state_id @base_content_state_id end |
#base_revision_id ⇒ Object
Returns the value of attribute base_revision_id.
8 9 10 |
# File 'lib/fiona7/version_helper.rb', line 8 def base_revision_id @base_revision_id end |
#content_state_id ⇒ Object
Returns the value of attribute content_state_id.
8 9 10 |
# File 'lib/fiona7/version_helper.rb', line 8 def content_state_id @content_state_id end |
#revision_id ⇒ Object
Returns the value of attribute revision_id.
8 9 10 |
# File 'lib/fiona7/version_helper.rb', line 8 def revision_id @revision_id end |
#workspace_id ⇒ Object
Returns the value of attribute workspace_id.
8 9 10 |
# File 'lib/fiona7/version_helper.rb', line 8 def workspace_id @workspace_id end |