Class: Fiona7::VersionHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/fiona7/version_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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_idObject

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_idObject

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_idObject

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_idObject

Returns the value of attribute workspace_id.



8
9
10
# File 'lib/fiona7/version_helper.rb', line 8

def workspace_id
  @workspace_id
end