Class: Apadmi::Grout::GetConfluencePageAction
- Inherits:
-
Object
- Object
- Apadmi::Grout::GetConfluencePageAction
- Defined in:
- lib/apadmi/grout/actions/get_confluence_page_action.rb
Overview
Action for retrieving a Confluence page by title
Instance Method Summary collapse
-
#initialize(confluence_service) ⇒ GetConfluencePageAction
constructor
A new instance of GetConfluencePageAction.
- #run(title, parent_id) ⇒ Apadmi::Grout::ConfluencePage?
Constructor Details
#initialize(confluence_service) ⇒ GetConfluencePageAction
Returns a new instance of GetConfluencePageAction.
8 9 10 |
# File 'lib/apadmi/grout/actions/get_confluence_page_action.rb', line 8 def initialize(confluence_service) @confluence_service = confluence_service end |
Instance Method Details
#run(title, parent_id) ⇒ Apadmi::Grout::ConfluencePage?
15 16 17 |
# File 'lib/apadmi/grout/actions/get_confluence_page_action.rb', line 15 def run(title, parent_id) @confluence_service.get_page_by_title(title, parent_id) end |