Class: AtomicAdmin::Interaction::Base
- Inherits:
-
Object
- Object
- AtomicAdmin::Interaction::Base
- Defined in:
- lib/atomic_admin/interaction/base.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#key ⇒ Object
Returns the value of attribute key.
-
#order ⇒ Object
Returns the value of attribute order.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(key:, type:, title: nil, icon: nil, order: 0, **kwargs) ⇒ Base
constructor
A new instance of Base.
- #resolve(**kwargs) ⇒ Object
Constructor Details
#initialize(key:, type:, title: nil, icon: nil, order: 0, **kwargs) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 10 11 12 |
# File 'lib/atomic_admin/interaction/base.rb', line 5 def initialize(key:, type:, title: nil, icon: nil, order: 0, **kwargs) @key = key @type = type @title = title @icon = icon @order = order @data = kwargs end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/atomic_admin/interaction/base.rb', line 3 def data @data end |
#icon ⇒ Object
Returns the value of attribute icon.
3 4 5 |
# File 'lib/atomic_admin/interaction/base.rb', line 3 def icon @icon end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/atomic_admin/interaction/base.rb', line 3 def key @key end |
#order ⇒ Object
Returns the value of attribute order.
3 4 5 |
# File 'lib/atomic_admin/interaction/base.rb', line 3 def order @order end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/atomic_admin/interaction/base.rb', line 3 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/atomic_admin/interaction/base.rb', line 3 def type @type end |
Instance Method Details
#resolve(**kwargs) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/atomic_admin/interaction/base.rb', line 14 def resolve(**kwargs) { key: key, type: type, title: title, icon: icon, } end |