Class: Spina::Pro::Pages::PageRevisionComponent

Inherits:
ApplicationComponent
  • Object
show all
Defined in:
app/components/spina/pro/pages/page_revision_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page, page_revision = nil) ⇒ PageRevisionComponent

Returns a new instance of PageRevisionComponent.



7
8
9
10
# File 'app/components/spina/pro/pages/page_revision_component.rb', line 7

def initialize(page, page_revision = nil)
  @page = page
  @page_revision = page_revision
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page.



5
6
7
# File 'app/components/spina/pro/pages/page_revision_component.rb', line 5

def page
  @page
end

#page_revisionObject (readonly)

Returns the value of attribute page_revision.



5
6
7
# File 'app/components/spina/pro/pages/page_revision_component.rb', line 5

def page_revision
  @page_revision
end