Class: Spina::Pro::Pages::PageRevisionComponent
- Inherits:
-
ApplicationComponent
- Object
- ApplicationComponent
- Spina::Pro::Pages::PageRevisionComponent
- Defined in:
- app/components/spina/pro/pages/page_revision_component.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#page_revision ⇒ Object
readonly
Returns the value of attribute page_revision.
Instance Method Summary collapse
-
#initialize(page, page_revision = nil) ⇒ PageRevisionComponent
constructor
A new instance of PageRevisionComponent.
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
#page ⇒ Object (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_revision ⇒ Object (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 |