Class: Voom::Presenters::DSL::Components::EventBase

Inherits:
Base
  • Object
show all
Includes:
Mixins::Event
Defined in:
lib/voom/presenters/dsl/components/event_base.rb

Instance Attribute Summary collapse

Attributes included from Mixins::Event

#events

Attributes inherited from Base

#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type

Instance Method Summary collapse

Methods included from Mixins::Event

#event

Methods inherited from Base

#expand!

Methods included from Pluggable

#include_plugins, #plugin, #plugin_module

Methods included from Mixins::YieldTo

#yield_to

Methods included from Serializer

#to_hash

Methods included from Lockable

#locked?

Constructor Details

#initialize(**attribs_, &block) ⇒ EventBase

Returns a new instance of EventBase.



9
10
11
12
13
# File 'lib/voom/presenters/dsl/components/event_base.rb', line 9

def initialize(**attribs_, &block)
  super(type: :icon,
        **attribs_, &block)
  @event_parent_id = @id
end

Instance Attribute Details

#event_parent_idObject (readonly)

Returns the value of attribute event_parent_id.



7
8
9
# File 'lib/voom/presenters/dsl/components/event_base.rb', line 7

def event_parent_id
  @event_parent_id
end