Class: AtomicAdmin::Interaction::Launch

Inherits:
Base
  • Object
show all
Defined in:
lib/atomic_admin/interaction/launch.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #icon, #key, #order, #title, #type

Instance Method Summary collapse

Constructor Details

#initialize(launch:, aud:, **kwargs) ⇒ Launch

Returns a new instance of Launch.



4
5
6
7
8
# File 'lib/atomic_admin/interaction/launch.rb', line 4

def initialize(launch:, aud:, **kwargs)
  super(**kwargs)
  @launch = launch
  @aud = aud
end

Instance Method Details

#resolve(**kwargs) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/atomic_admin/interaction/launch.rb', line 10

def resolve(**kwargs)
  hash = super(**kwargs)

  hash[:launch_url] = @launch.call(**kwargs)
  hash[:aud] = @aud

  hash
end