Class: WebFlow::SystemEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/webflow/event.rb

Overview

The SystemEvent class is a subclass of WebFlow::Event and is used internally to trigger plugins execution. Since the plugins are not activated yet, SystemEvents are not used.

Instance Attribute Summary collapse

Attributes inherited from Event

#name

Instance Method Summary collapse

Constructor Details

#initialize(m_event_name, m_controller, m_flow_data) ⇒ SystemEvent

Initializes the class instance



69
70
71
72
73
74
75
76
77
# File 'lib/webflow/event.rb', line 69

def initialize(m_event_name, m_controller, m_flow_data)

  # Super controller
  super m_event_name

  # Set values
  @controller, @flow_data = m_controller, m_flow_data

end

Instance Attribute Details

#controllerObject

Returns the value of attribute controller.



66
67
68
# File 'lib/webflow/event.rb', line 66

def controller
  @controller
end

#flow_dataObject

Returns the value of attribute flow_data.



66
67
68
# File 'lib/webflow/event.rb', line 66

def flow_data
  @flow_data
end