Class: ForestLiana::Bootstraper

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

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Bootstraper

Returns a new instance of Bootstraper.



4
5
6
7
8
9
# File 'lib/forest_liana/bootstraper.rb', line 4

def initialize(app)
  @app = app

  @integration_stripe_valid = false
  @integration_intercom_valid = false
end

Instance Method Details

#performObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/forest_liana/bootstraper.rb', line 11

def perform
  fetch_models
  check_integrations_setup
  create_serializers

  if ForestLiana.secret_key
    create_apimap
    require_lib_forest_liana
    send_apimap
  end
end