Class: NitroKit::UpgradeSmoke::Surface

Inherits:
Phlex::HTML
  • Object
show all
Includes:
Phlex::Rails::Helpers::FormWith, Phlex::Rails::Helpers::TurboFrameTag
Defined in:
lib/nitro_kit/upgrade_smoke_test.rb

Instance Method Summary collapse

Constructor Details

#initialize(profile:, revision:) ⇒ Surface

Returns a new instance of Surface.



34
35
36
37
# File 'lib/nitro_kit/upgrade_smoke_test.rb', line 34

def initialize(profile:, revision:)
  @profile = profile
  @revision = revision
end

Instance Method Details

#view_templateObject



39
40
41
42
43
44
45
46
47
48
# File 'lib/nitro_kit/upgrade_smoke_test.rb', line 39

def view_template
  section(data: { nitro_kit_upgrade_smoke: "surface" }) do
    turbo_frame_tag(FRAME_ID) do
      render_summary
      render_form
      render_dialog
      render_sheet
    end
  end
end