Class: CatalystAutomation::WithRest

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

Class Method Summary collapse

Class Method Details

.initialize(rest_api) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/catalyst_automation.rb', line 10

def self.initialize(rest_api)
  sections_json = []
  pages_json = Base.get_rest_api_info(rest_api, 'pages')
  personas_json = Base.get_rest_api_info(rest_api, 'personas')
  Base.create_pages(pages_json, sections_json)
  Base.create_personas(personas_json)
end