class CatalystAutomation::WithJson

Public Class Methods

initialize(test_data, pages, actions, sections) click to toggle source
# File lib/catalyst_automation.rb, line 23
def self.initialize(test_data, pages, actions, sections)
  test_data_json = JSON.parse(test_data)
  pages_json = JSON.parse(pages)
  #actions_json = JSON.parse(actions)
  sections_json = JSON.parse(sections)

  Base.create_test_data(test_data_json) 
  Base.create_sections(sections_json)
  Base.create_iframes(pages_json, sections_json)
  Base.create_pages(pages_json, sections_json)
  #Base.create_iframe_actions(actions_json)
  #Base.create_actions(actions_json)
end